Class: DevDump::Configuration
- Inherits:
-
Object
- Object
- DevDump::Configuration
- Defined in:
- lib/dev_dump.rb
Instance Attribute Summary collapse
-
#backups_path ⇒ Object
Returns the value of attribute backups_path.
-
#rails_db_config ⇒ Object
Returns the value of attribute rails_db_config.
-
#ssh_host ⇒ Object
Returns the value of attribute ssh_host.
-
#ssh_user ⇒ Object
Returns the value of attribute ssh_user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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_config ⇒ Object
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_host ⇒ Object
Returns the value of attribute ssh_host.
15 16 17 |
# File 'lib/dev_dump.rb', line 15 def ssh_host @ssh_host end |
#ssh_user ⇒ Object
Returns the value of attribute ssh_user.
15 16 17 |
# File 'lib/dev_dump.rb', line 15 def ssh_user @ssh_user end |