Module UploadUtils
In: lib/facets/more/uploadutils.rb

Upload files to host. These means of uploading are current supported: ftp, sftp, scp and rsync.

    user       Username for host.
    host       Host server's domain name.
    root       Document root path on host.
    copy       Directory of files to publish, or
               Files to publish using from and to.

    dryrun     If true only pretend to upload.
    quiet      Supress all output.
    verbose    Provide extra details.

The copy parameter allows you to simply specify a file or directory which will be published to host‘s document root location.

If you need more control over which files to publish where, you can use the copy parameter instead. Provide an array of pattern strings in the form of "{from} {to}". If the desitination is the host‘s document root you do not need to specify the {to} part. For example:

    copy = [ 'web/*', 'doc/api/* doc/api' ]

The first copies the files under your project‘s web directory to the host‘s document root. The second copies your projects doc/api files to the doc/api location on the host.

The internal template used for the outbound destination is ‘username@host:root/’.

Methods

Public Instance methods

Put together the list of files to copy.

When using stage options this will create temporary linked location.

Combine three part stage list into a two part from->to list.

Using the stage list of three space separated fields.

  fromdir file todir

This is used to generate a from -> to list of the form:

 fromdir/file todir/file

Upload via given protocol.

parse publishing options.

[Validate]