Class: StaticDb::Load
- Inherits:
-
Object
- Object
- StaticDb::Load
- Defined in:
- lib/static_db/load.rb
Instance Method Summary collapse
-
#initialize(static_db_path: StaticDb.path) ⇒ Load
constructor
A new instance of Load.
- #perform ⇒ Object
Constructor Details
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/static_db/load.rb', line 7 def perform reset_database! load_data! rescue => e puts red("Failed to load data: #{e.}") puts red("Exiting and skipping StaticDb::Dump.") $skip_static_db_dump = true exit 1 end |