NAME
Pinto::Store - Base class for storage of a Pinto repository
VERSION
version 0.038
DESCRIPTION
Pinto::Store is the base class for Pinto Stores. It provides the basic API for adding/removing distribution archives to the store. Subclasses implement the underlying logic by augmenting the methods declared here.
METHODS
initialize()
This method is called before each batch of Pinto events, and is responsible for doing any setup work that is required by the Store. This could include making a directory on the file system, checking out or updating a working copy, cloning, or pulling commits. If the initialization fails, an exception should be thrown. The default implementation simply creates the repository directory, if it isn't already there. Returns a reference to this Store.
commit(message => 'what happened')
This method is called after each batch of Pinto events and is responsible for doing any work that is required to commit the Store. This could include scheduling files for addition/deletion, pushing commits to a remote repository. If the commit fails, an exception should be thrown. The default implementation does nothing. Returns a reference to this Store.
tag( tag => $tag_name )
Tags the store. For some subclasses, this means performing some kind of "tag" operations. For others, it could mean doing a copy operation. The default implementation does nothing.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Imaginative Software Systems.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.