Name

Bric::Util::Trans::SFTP - SFTP Client interface for distributing resources.

Synopsis

use Bric::Util::Trans::SFTP

Description

The distribution API uses this class to distribute resources to other servers via SFTP.

Interface

Constructors

NONE.

Destructors

NONE.

Public Class Methods

NONE.

Public Instance Methods

NONE.

Public Functions

my $bool = Bric::Util::Trans::SFTP->put_res($resources, $st)

Puts the files specified by the $resources object on the servers specified by $st.

Throws:

Side Effects: NONE.

Notes: Uses Net::SFTP internally.

my $bool = Bric::Util::Trans::SFTP->del_res($resources, $st)

Deletes the files specified by the $resources object from the servers specified by $st.

Throws:

Side Effects: NONE.

Notes: See put_res(), above.

Private

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

_connect_to

Establishes an SSH2 connection.

Notes

NONE.

Author

Scott Lanning <slanning@theworld.com> Sarah Mercier <mercie_s@denison.edu> Charlie Reitsma <reitsma@denison.edu> Matt Rolf <rolfm@denison.edu>

See Also

Bric, Bric::Dist::Action, Bric::Dist::Action::Mover, Bric::Util::Trans::FS, Net::SSH2, Net::SSH::Perl