Class: DevDump::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dev_dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
22
# File 'lib/dev_dump.rb', line 17

def initialize
  self.rails_db_config = YAML.load_file(File.join(Dir.getwd, 'config', 'database.yml'))[Rails.env]
  self.backups_path = "/tmp/backups/"
  self.ssh_user = nil
  self.ssh_host = nil
end

Instance Attribute Details

#backups_pathObject

Returns the value of attribute backups_path.



15
16
17
# File 'lib/dev_dump.rb', line 15

def backups_path
  @backups_path
end

#rails_db_configObject

Returns the value of attribute rails_db_config.



15
16
17
# File 'lib/dev_dump.rb', line 15

def rails_db_config
  @rails_db_config
end

#ssh_hostObject

Returns the value of attribute ssh_host.



15
16
17
# File 'lib/dev_dump.rb', line 15

def ssh_host
  @ssh_host
end

#ssh_userObject

Returns the value of attribute ssh_user.



15
16
17
# File 'lib/dev_dump.rb', line 15

def ssh_user
  @ssh_user
end