App-git-ship
view release on metacpan or search on metacpan
lib/App/git/ship.pm view on Meta::CPAN
=head2 dump
$str = $ship->dump($any);
Will serialize C<$any> into a perl data structure, using L<Data::Dumper>.
=head2 new
$ship = App::git::ship->new(\%attributes);
Creates a new instance of C<$class>.
=head2 render_template
$ship->render_template($file, \%args);
Used to render a template by the name C<$file> to a C<$file>. The template
needs to be defined in the C<DATA> section of the current class or one of
the super classes.
=head2 run_hook
$ship->run_hook($name);
Used to run a hook before or after an event. The hook is a command which needs
to be defined in L</config>. See also L</GIT_SHIP_AFTER_BUILD>,
L</GIT_SHIP_AFTER_SHIP>, L</GIT_SHIP_BEFORE_BUILD> and
L</GIT_SHIP_BEFORE_SHIP>.
=head2 ship
$ship->ship;
This method ships the project to some online repository. The default behavior
is to make a new tag and push it to "origin". Push occurs only if origin is
defined in git.
=head2 start
$ship->start;
This method is called when initializing the project. The default behavior is
to populate L</config> with default data:
=head2 system
$ship->system($program, @args);
Same as perl's C<system()>, but provides error handling and logging.
=head1 SEE ALSO
=over
=item * L<Dist::Zilla>
This project can probably get you to the moon.
=item * L<Minilla>
This looks really nice for shipping your project. It has the same idea as
this distribution: Guess as much as possible.
=item * L<Shipit>
One magical tool for doing it all in one bang.
=back
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2014-2018, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under
the terms of the Artistic License version 2.0.
=head1 AUTHOR
Jan Henning Thorsen - C<jhthorsen@cpan.org>
mohawk2 - C<mohawk2@users.noreply.github.com>
Rolf Stöckli - C<tekki@cpan.org>
Shoichi Kaji - C<skaji@cpan.org>
=cut
__DATA__
@@ .gitignore
~$
*.bak
*.old
*.swp
/local
@@ test
<%= $x %>: <%= $ship->config('repository') %> # test
( run in 1.261 second using v1.01-cache-2.11-cpan-39bf76dae61 )