Class: Ridgepole::ReplaceDbTask::SpecConfig
- Inherits:
-
Object
- Object
- Ridgepole::ReplaceDbTask::SpecConfig
- Defined in:
- lib/ridgepole/replace_db_task/spec_config.rb
Instance Attribute Summary collapse
-
#multiple_migration_settings ⇒ Object
readonly
Returns the value of attribute multiple_migration_settings.
-
#other_options ⇒ Object
readonly
Returns the value of attribute other_options.
-
#schema_file_path ⇒ Object
readonly
Returns the value of attribute schema_file_path.
-
#spec_name ⇒ Object
readonly
Returns the value of attribute spec_name.
Instance Method Summary collapse
-
#initialize(spec_name:, schema_file_path:, multiple_migration_settings: { development: %i[test] }, other_options: []) ⇒ SpecConfig
constructor
A new instance of SpecConfig.
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 = freeze end |
Instance Attribute Details
#multiple_migration_settings ⇒ Object (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_options ⇒ Object (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 end |
#schema_file_path ⇒ Object (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_name ⇒ Object (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 |