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