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.



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_pathObject

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_pathObject

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_configurationObject

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_nameObject

Returns the value of attribute spec_name.



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

def spec_name
  @spec_name
end