Class: AfterMigrate::Configuration
- Inherits:
-
Object
- Object
- AfterMigrate::Configuration
- Defined in:
- lib/after_migrate.rb
Instance Attribute Summary collapse
-
#analyze ⇒ Object
Returns the value of attribute analyze.
-
#defer ⇒ Object
Returns the value of attribute defer.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#rake_tasks_enhanced ⇒ Object
Returns the value of attribute rake_tasks_enhanced.
-
#run_id ⇒ Object
Returns the value of attribute run_id.
-
#store ⇒ Object
Returns the value of attribute store.
-
#store_path ⇒ Object
Returns the value of attribute store_path.
-
#vacuum ⇒ Object
Returns the value of attribute vacuum.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/after_migrate.rb', line 13 def initialize @enabled = true @verbose = true @vacuum = true @analyze = 'only_affected_tables' @rake_tasks_enhanced = true @defer = true @store = :memory @store_path = 'tmp/after_migrate/affected_tables.json' @run_id = nil end |
Instance Attribute Details
#analyze ⇒ Object
Returns the value of attribute analyze.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def analyze @analyze end |
#defer ⇒ Object
Returns the value of attribute defer.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def defer @defer end |
#enabled ⇒ Object
Returns the value of attribute enabled.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def enabled @enabled end |
#rake_tasks_enhanced ⇒ Object
Returns the value of attribute rake_tasks_enhanced.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def rake_tasks_enhanced @rake_tasks_enhanced end |
#run_id ⇒ Object
Returns the value of attribute run_id.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def run_id @run_id end |
#store ⇒ Object
Returns the value of attribute store.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def store @store end |
#store_path ⇒ Object
Returns the value of attribute store_path.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def store_path @store_path end |
#vacuum ⇒ Object
Returns the value of attribute vacuum.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def vacuum @vacuum end |
#verbose ⇒ Object
Returns the value of attribute verbose.
11 12 13 |
# File 'lib/after_migrate.rb', line 11 def verbose @verbose end |