Class: DataMigrate::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/data_migrate/config.rb

Constant Summary collapse

DEFAULT_DATA_TEMPLATE_PATH =
"data_migration.rb"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
24
# File 'lib/data_migrate/config.rb', line 18

def initialize
  @data_migrations_table_name = "data_migrations"
  @data_migrations_path = "db/data/"
  @data_template_path = DEFAULT_DATA_TEMPLATE_PATH
  @db_configuration = nil
  @spec_name = nil
end

Instance Attribute Details

#data_migrations_pathObject

Returns the value of attribute data_migrations_path.



14
15
16
# File 'lib/data_migrate/config.rb', line 14

def data_migrations_path
  @data_migrations_path
end

#data_migrations_table_nameObject

Returns the value of attribute data_migrations_table_name.



14
15
16
# File 'lib/data_migrate/config.rb', line 14

def data_migrations_table_name
  @data_migrations_table_name
end

#data_template_pathObject

Returns the value of attribute data_template_path.



14
15
16
# File 'lib/data_migrate/config.rb', line 14

def data_template_path
  @data_template_path
end

#db_configurationObject

Returns the value of attribute db_configuration.



14
15
16
# File 'lib/data_migrate/config.rb', line 14

def db_configuration
  @db_configuration
end

#spec_nameObject

Returns the value of attribute spec_name.



14
15
16
# File 'lib/data_migrate/config.rb', line 14

def spec_name
  @spec_name
end