Method: Backup::Storage::SCP#initialize

Defined in:
lib/backup/storage/scp.rb

#initialize(model, storage_id = nil) ⇒ SCP

Returns a new instance of SCP.



18
19
20
21
22
23
24
25
# File 'lib/backup/storage/scp.rb', line 18

def initialize(model, storage_id = nil)
  super

  @port ||= 22
  @path ||= 'backups'
  @ssh_options ||= {}
  path.sub!(/^~\//, '')
end