Class: Dbmanager::Dumper
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from Runner
#environments, #input, #output
Instance Method Summary collapse
Methods inherited from Runner
#get_env, #get_filename, #initialize
Constructor Details
This class inherits a constructor from Dbmanager::Runner
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
4 5 6 |
# File 'lib/dbmanager/dumper.rb', line 4 def filename @filename end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/dbmanager/dumper.rb', line 4 def source @source end |
Instance Method Details
#run ⇒ Object
6 7 8 9 10 |
# File 'lib/dbmanager/dumper.rb', line 6 def run get_data dumper.run output.puts "Database successfully dumped in #{filename} file." end |