Class: Gomon::Restore
Instance Method Summary collapse
- #after_call ⇒ Object
- #before_call ⇒ Object
-
#initialize(*args) ⇒ Restore
constructor
A new instance of Restore.
Methods inherited from Base
Methods included from Uri
Constructor Details
#initialize(*args) ⇒ Restore
Returns a new instance of Restore.
5 6 7 8 9 |
# File 'lib/gomon/restore.rb', line 5 def initialize(*args) super @command = 'mongorestore' end |
Instance Method Details
#after_call ⇒ Object
16 17 18 |
# File 'lib/gomon/restore.rb', line 16 def after_call puts "Done restoring." end |
#before_call ⇒ Object
11 12 13 14 |
# File 'lib/gomon/restore.rb', line 11 def before_call puts "Restoring from dir `#{arguments.first}` into `#{[:db]}` at #{[:host]}..." puts "Executing: #{cli_command}" end |