Class: Dandelion::Adapter::FTPS
- Includes:
- Utils
- Defined in:
- lib/dandelion/adapter/ftps.rb
Instance Method Summary collapse
- #connection_params ⇒ Object
-
#initialize(config) ⇒ FTPS
constructor
A new instance of FTPS.
Methods included from Utils
Methods inherited from FTP
Methods inherited from Base
adapter, create_adapter, requires_gems
Constructor Details
#initialize(config) ⇒ FTPS
Returns a new instance of FTPS.
10 11 12 13 14 15 16 17 |
# File 'lib/dandelion/adapter/ftps.rb', line 10 def initialize(config) require 'net/ftp' config[:ftps_implicit] = to_b(config[:ftps_implicit]) config[:insecure] = to_b(config[:insecure]) super(config) end |
Instance Method Details
#connection_params ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/dandelion/adapter/ftps.rb', line 28 def connection_params { port: @config['port'], ssl: ssl_context_params, passive: @config['passive'], implicit_ftps: @config['ftps_implicit'], username: @config['username'], password: @config['password'], debug_mode: @config['debug'] } end |