Class: StaticDb::Dump
- Inherits:
-
Object
- Object
- StaticDb::Dump
- Defined in:
- lib/static_db/dump.rb
Instance Attribute Summary collapse
-
#models_to_be_saved ⇒ Object
readonly
Returns the value of attribute models_to_be_saved.
Instance Method Summary collapse
-
#initialize(static_db_path: StaticDb.path) ⇒ Dump
constructor
A new instance of Dump.
- #perform ⇒ Object
Constructor Details
Instance Attribute Details
#models_to_be_saved ⇒ Object (readonly)
Returns the value of attribute models_to_be_saved.
3 4 5 |
# File 'lib/static_db/dump.rb', line 3 def models_to_be_saved @models_to_be_saved end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/static_db/dump.rb', line 10 def perform exit 1 if $skip_static_db_dump validate_records! reset_data_directory! dump_data! end |