Name

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

Synopsis

use Bric::Util::Trans::FTP

Description

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

Interface

Constructors

NONE.

Destructors

NONE.

Public Class Methods

NONE.

Public Instance Methods

NONE.

Public Functions

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

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

Throws:

Side Effects: NONE.

Notes: Uses Net::FTP internally. Unfortunately, except for connecting to the remote server, Net::FTP provides no error messages for failures. This will make debugging more difficult, but there's not much to be done. Hopefully the generalized error messages will be enough to give system administrators a clue as to what needs to be changed.

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

Deletes the files specified by the $job 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

NONE.

Notes

NONE.

Author

David Wheeler <david@justatheory.com>

See Also

Bric, Bric::Dist::Action, Bric::Dist::Action::Mover, Bric::Util::Trans::FS