Class: Ridgepole::ReplaceDbTask::SpecConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/ridgepole/replace_db_task/spec_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec_name:, schema_file_path:, multiple_migration_settings: { development: %i[test] }, other_options: []) ⇒ SpecConfig

Returns a new instance of SpecConfig.



8
9
10
11
12
13
14
15
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 8

def initialize(spec_name:, schema_file_path:, multiple_migration_settings: { development: %i[test] }, other_options: [])
  @spec_name = spec_name
  @schema_file_path = schema_file_path
  @multiple_migration_settings = multiple_migration_settings
  @other_options = other_options

  freeze
end

Instance Attribute Details

#multiple_migration_settingsObject (readonly)

Returns the value of attribute multiple_migration_settings.



6
7
8
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6

def multiple_migration_settings
  @multiple_migration_settings
end

#other_optionsObject (readonly)

Returns the value of attribute other_options.



6
7
8
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6

def other_options
  @other_options
end

#schema_file_pathObject (readonly)

Returns the value of attribute schema_file_path.



6
7
8
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6

def schema_file_path
  @schema_file_path
end

#spec_nameObject (readonly)

Returns the value of attribute spec_name.



6
7
8
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6

def spec_name
  @spec_name
end