Method: MPW::FTP#initialize

Defined in:
lib/mpw/sync/ftp.rb

#initialize(config) ⇒ FTP

Constructor @args: config -> the config



27
28
29
30
31
32
33
# File 'lib/mpw/sync/ftp.rb', line 27

def initialize(config)
  @host      = config['host']
  @user      = config['user']
  @password  = config['password']
  @path      = config['path']
  @port      = config['port'].instance_of?(Integer) ? 22 : config['port']
end