Method: SlidayBackup::Storage::FTP#initialize

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

#initialize(model, storage_id = nil) ⇒ FTP

Returns a new instance of FTP.



30
31
32
33
34
35
36
37
38
# File 'lib/sliday_backup/storage/ftp.rb', line 30

def initialize(model, storage_id = nil)
  super

  @port         ||= 21
  @path         ||= 'backups'
  @passive_mode ||= false
  @timeout      ||= nil
  path.sub!(/^~\//, '')
end