Class: Pgchief::Command::QuickBackup
- Defined in:
- lib/pgchief/command/quick_backup.rb
Overview
Command object to quickly restore the latest backup for a database
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Pgchief::Command::Base
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 |
# File 'lib/pgchief/command/quick_backup.rb', line 7 def call database = params.last Pgchief::Config.load_config!(params.first) Pgchief::Config.set_up_file_structure! Pgchief::Command::DatabaseBackup.call(database) end |