Class: Gomon::Dump

Inherits:
Base
  • Object
show all
Defined in:
lib/gomon/dump.rb

Instance Method Summary collapse

Methods inherited from Base

#after_initialize

Methods included from Uri

#parse_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_callObject



16
17
18
# File 'lib/gomon/dump.rb', line 16

def after_call
  puts "Done dumping."
end

#before_callObject



11
12
13
14
# File 'lib/gomon/dump.rb', line 11

def before_call
  puts "Dumping `#{options[:db]}` from #{options[:host]}..."
  puts "Executing: #{cli_command}"
end