Socialtext::Resting::LocalCopy(3pm)

Socialtext::Resting::LocalCopy3pm

Maintain a copy on disk of a workspace

Usage

Socialtext::Resting::LocalCopy allows one to copy a workspace into files on the local disk, and to update a workspace from files on disk.

Methods

new

Create a new LocalCopy object. Requires a "rester" parameter, which should be a Socialtext::Rester-like object.

pull

Reads a workspace and pulls all of the pages into files in the specified directory. Options are passed in as a list of named options:

dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pulled.

push

Reads a directory and pushes all the files in that directory up to the specified workspace. Options are passed in as a list of named options:

dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pushed.

Note - tag is not yet implemented.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

Bugs

Attachments are not yet supported. Push by tag is not yet supported.

Author

Luke Closs, "<luke.closs at socialtext.com>"

From libsocialtext-resting-utils-perl 0.21-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.