Fork me on GitHub
(source)

NAME

Statocles::Deploy::Git - Deploy a site to a Git repository

DESCRIPTION

This class allows a site to be deployed to a Git repository.

This class extends Statocles::Store::File.

ATTRIBUTES

path

The path to deploy to. Must be the root of the Git repository, or a directory inside of the Git repository.

branch

The Git branch to deploy to. Defaults to "master". If you're building a Github Pages site for a project, you probably want to use the "gh-pages" branch.

remote

The name of the remote to deploy to. Defaults to 'origin'.

METHODS

deploy

    my @paths = $deploy->deploy( $from_store, $message );

Deploy the site, copying from the given from_store with the given commit message (if applicable). Returns the paths that were deployed.

SEE ALSO

Statocles::Store::File
Statocles::Deploy