Class: Frank::Publish::FTPTLS

Inherits:
Base
  • Object
show all
Defined in:
lib/frank/publish/ftptls.rb

Instance Attribute Summary

Attributes inherited from Base

#hostname, #local_path, #password, #port, #remote_path, #username

Instance Method Summary collapse

Methods inherited from Base

#perform!

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(options, &block)
  super(options)
  instance_eval(&block) if block_given?

  @port ||= 21
  @remote_path = remote_path.sub(/^\~\//, '').sub(/^\//, '')
end