Class: Dbmanager::Loader
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#target ⇒ Object
Returns the value of attribute target.
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/loader.rb', line 4 def filename @filename end |
#target ⇒ Object
Returns the value of attribute target.
4 5 6 |
# File 'lib/dbmanager/loader.rb', line 4 def target @target end |
Instance Method Details
#run ⇒ Object
6 7 8 9 10 |
# File 'lib/dbmanager/loader.rb', line 6 def run get_data loader.run output.puts "Database successfully loaded from #{filename}." end |