Class: Frank::Publish::FTPTLS
Instance Attribute Summary
Attributes inherited from Base
#hostname, #local_path, #password, #port, #remote_path, #username
Instance Method Summary collapse
-
#initialize(options, &block) ⇒ FTPTLS
constructor
A new instance of FTPTLS.
Methods inherited from Base
Constructor Details
#initialize(options, &block) ⇒ FTPTLS
Returns a new instance of FTPTLS.
9 10 11 12 13 14 15 |
# File 'lib/frank/publish/ftptls.rb', line 9 def initialize(, &block) super() instance_eval(&block) if block_given? @port ||= 21 @remote_path = remote_path.sub(/^\~\//, '').sub(/^\//, '') end |