Class: Dbmanager::Loader

Inherits:
Runner
  • Object
show all
Defined in:
lib/dbmanager/loader.rb

Instance Attribute Summary collapse

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

#filenameObject

Returns the value of attribute filename.



4
5
6
# File 'lib/dbmanager/loader.rb', line 4

def filename
  @filename
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/dbmanager/loader.rb', line 4

def target
  @target
end

Instance Method Details

#runObject



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