Class: Backup::Record::SCP

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/record/scp.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#adapter_config, #keep_backups

Instance Method Summary collapse

Methods inherited from Base

destroy_all_backups, #load_adapter

Instance Attribute Details

#ipObject

Returns the value of attribute ip.



7
8
9
# File 'lib/backup/record/scp.rb', line 7

def ip
  @ip
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/backup/record/scp.rb', line 7

def password
  @password
end

#userObject

Returns the value of attribute user.



7
8
9
# File 'lib/backup/record/scp.rb', line 7

def user
  @user
end

Instance Method Details

#load_specific_settings(adapter) ⇒ Object



9
10
11
12
13
# File 'lib/backup/record/scp.rb', line 9

def load_specific_settings(adapter)
  %w(ip user password path).each do |method|
    send(:"#{method}=", adapter.procedure.get_storage_configuration.attributes[method])
  end
end