Class: Backup::Record::SFTP

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/record/sftp.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.



5
6
7
# File 'lib/backup/record/sftp.rb', line 5

def ip
  @ip
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/backup/record/sftp.rb', line 5

def password
  @password
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/backup/record/sftp.rb', line 5

def user
  @user
end

Instance Method Details

#load_specific_settings(adapter) ⇒ Object



7
8
9
10
11
# File 'lib/backup/record/sftp.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