Class: Dbmanager::Dumper

Inherits:
Runner
  • Object
show all
Defined in:
lib/dbmanager/dumper.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/dumper.rb', line 4

def filename
  @filename
end

#sourceObject

Returns the value of attribute source.



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

def source
  @source
end

Instance Method Details

#runObject



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