Class: Backup::Record::SCP
- Defined in:
- lib/backup/record/scp.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Attributes inherited from Base
#adapter_config, #keep_backups
Instance Method Summary collapse
Methods inherited from Base
destroy_all_backups, #load_adapter
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
5 6 7 |
# File 'lib/backup/record/scp.rb', line 5 def ip @ip end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/backup/record/scp.rb', line 5 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/backup/record/scp.rb', line 5 def user @user end |
Instance Method Details
#load_specific_settings(adapter) ⇒ Object
7 8 9 10 11 |
# File 'lib/backup/record/scp.rb', line 7 def load_specific_settings(adapter) %w(ip user password path).each do |method| send(:"#{method}=", adapter.procedure.get_storage_configuration.attributes[method]) end end |