Name

Bric::Dist::Action::Mover - Actions that actually move resources.

Synopsis

use Bric::Dist::Action::Mover;

Description

This subclass of Bric::Dist::Action handles distribution. All ServerTypes must have a mover_class selected, and a "Move" action specified. When Bricolage triggers the Move action, this class determines what the mover method is, and invokes the put_res() (or del_res()) method of the appropriate mover class. See below for information on how to create your own mover.

Interface

Constructors

Inherited from Bric::Dist::Action.

Destructors

$mover->DESTROY

Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Class Methods

NONE.

Public Instance Methods

The methods documented here are in addition to those inherited from Bric::Dist::Action.

$act->do_it($job, $resources, $server_type)

Executes $action via the method specified for the Bric::Dist::ServerType of which this action is a part.

Throws:

Side Effects: NONE.

Notes: NONE.

$act->undo_it($job, $resources, $server_type)

Undoes $action via the method specified for the Bric::Dist::ServerType of which this action is a part.

Throws:

Side Effects: NONE.

Notes: NONE.

Private

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NONE.

Notes

How to Add New Distribution Movers.

If you're interested in adding new methods of distribution, or movers, to Bricolage, here's how to do it.

And that's all there is to it! Good luck!

Author

David Wheeler <david@justatheory.com>

See Also

Bric, Bric::Dist::Action