Method: SlidayBackup::Storage::SFTP#initialize

Defined in:
lib/sliday_backup/storage/sftp.rb

#initialize(model, storage_id = nil) ⇒ SFTP

Returns a new instance of SFTP.



17
18
19
20
21
22
23
24
# File 'lib/sliday_backup/storage/sftp.rb', line 17

def initialize(model, storage_id = nil)
  super

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