Class: DataMigrate::Config
- Inherits:
-
Object
- Object
- DataMigrate::Config
- Defined in:
- lib/data_migrate/config.rb
Constant Summary collapse
- DEFAULT_DATA_TEMPLATE_PATH =
"data_migration.rb"
Instance Attribute Summary collapse
-
#data_migrations_path ⇒ Object
Returns the value of attribute data_migrations_path.
-
#data_template_path ⇒ Object
Returns the value of attribute data_template_path.
-
#db_configuration ⇒ Object
Returns the value of attribute db_configuration.
-
#spec_name ⇒ Object
Returns the value of attribute spec_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 24 |
# File 'lib/data_migrate/config.rb', line 19 def initialize @data_migrations_path = "db/data/" @data_template_path = DEFAULT_DATA_TEMPLATE_PATH @db_configuration = nil @spec_name = nil end |
Instance Attribute Details
#data_migrations_path ⇒ Object
Returns the value of attribute data_migrations_path.
15 16 17 |
# File 'lib/data_migrate/config.rb', line 15 def data_migrations_path @data_migrations_path end |
#data_template_path ⇒ Object
Returns the value of attribute data_template_path.
15 16 17 |
# File 'lib/data_migrate/config.rb', line 15 def data_template_path @data_template_path end |
#db_configuration ⇒ Object
Returns the value of attribute db_configuration.
15 16 17 |
# File 'lib/data_migrate/config.rb', line 15 def db_configuration @db_configuration end |
#spec_name ⇒ Object
Returns the value of attribute spec_name.
15 16 17 |
# File 'lib/data_migrate/config.rb', line 15 def spec_name @spec_name end |