Class: Frank::Publish::FTP
Constant Summary
Constants included from Render
Render::LAYOUT_EXTS, Render::TMPL_EXTS
Instance Method Summary collapse
-
#initialize(options, &block) ⇒ FTP
constructor
A new instance of FTP.
Methods inherited from Base
Methods included from Render
#ext_from_handler, #layout_ext_or_first, #layout_for, #render, #setup_page, #tilt, #to_file_path
Methods included from TemplateHelpers
#capture, #content_for, #content_for?, #lorem, #refresh, #render_partial
Methods included from Rescue
Constructor Details
#initialize(options, &block) ⇒ FTP
Returns a new instance of FTP.
9 10 11 12 13 14 15 |
# File 'lib/frank/publish/ftp.rb', line 9 def initialize(, &block) super() instance_eval(&block) if block_given? @port ||= 21 @remote_path = remote_path.sub(/^\~\//, '').sub(/^\//, '') end |