https://github.com/preaction/mojolicious-plugin-export-git
Export a Mojolicious site to a Git repository
https://github.com/preaction/mojolicious-plugin-export-git
Last synced: 3 days ago
JSON representation
Export a Mojolicious site to a Git repository
- Host: GitHub
- URL: https://github.com/preaction/mojolicious-plugin-export-git
- Owner: preaction
- License: other
- Created: 2021-03-21T20:35:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T02:00:07.000Z (about 5 years ago)
- Last Synced: 2026-05-26T00:23:49.228Z (about 1 month ago)
- Language: Perl
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: CHANGES
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/preaction/Mojolicious-Plugin-Export-Git)
[](https://coveralls.io/r/preaction/Mojolicious-Plugin-Export-Git?branch=master)
# NAME
Mojolicious::Plugin::Export::Git - Export a Mojolicious site to a Git repository
# VERSION
version 0.003
# SYNOPSIS
use Mojolicious::Lite;
get '/' => 'index';
get '/secret' => 'secret';
plugin 'Export::Git' => {
pages => [qw( / /secret )],
branch => 'gh-pages',
};
app->start;
# DESCRIPTION
Deploy a Mojolicious webapp to a Git repository.
This plugin requires Git version 1.7.2 (released July 21, 2010) or later.
# ATTRIBUTES
This class inherits from [Mojolicious::Plugin::Export](https://metacpan.org/pod/Mojolicious::Plugin::Export) and adds the
following attributes:
## 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'.
## clean
If true, will completely remove all existing files before exporting. This
ensures that any deleted files will be deleted from the repository.
Defaults to true if ["branch"](#branch) isn't the current branch.
# METHODS
This class inherits from [Mojolicious::Plugin::Export](https://metacpan.org/pod/Mojolicious::Plugin::Export) and adds the
following methods:
# SEE ALSO
[Mojolicious::Plugin::Export](https://metacpan.org/pod/Mojolicious::Plugin::Export), [Git::Repository](https://metacpan.org/pod/Git::Repository)
# AUTHOR
Doug Bell
# COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by Doug Bell.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.