Method: Frank::Publish::FTPTLS#initialize
- Defined in:
- lib/frank/publish/ftptls.rb
#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 |