Class: Frank::Publish::FTP

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

Constant Summary

Constants included from Render

Render::LAYOUT_EXTS, Render::TMPL_EXTS

Instance Method Summary collapse

Methods inherited from Base

#call, #call!

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

#render_404, #render_500

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

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