NAME
App::git::ship::perl - Ship your Perl module
DESCRIPTION
App::git::ship::perl is a module that can ship your Perl module.
See "SYNOPSIS" in App::git::ship
ATTRIBUTES
main_module_path
$str = $self->main_module_path;
Tries to guess the path to the main module in the repository. This is done by looking at the repo name and try to find a file by that name. Example:
./my-cool-project/.git
./my-cool-project/lib/My/Cool/Project.pm
This guessing is case-insensitive.
Instead of guessing, you can put "main_module_path" in the config file.
project_name
$str = $self->project_name;
Tries to figure out the project name from "main_module_path" unless the "project_name" is specified in config file.
Example result: "My::Perl::Project".
METHODS
build
Used to build a Perl distribution by running through these steps:
Call "clean" to make sure the repository does not contain old build files.
Run prove if
build_test_options
is set in.ship.conf
.Run "before_build" hook.
Render Makefile.PL
Add timestamp to changes file.
Update version in main module file.
Update README with perldoc, unless another readfile file exists.
Make MANIFEST
Make dist file (Your-App-0.42.tar.gz)
Run "after_build" hook.
can_handle_project
See "can_handle_project" in App::git::ship.
clean
Used to clean out build files:
Makefile, Makefile.old, MANIFEST, MYMETA.json, MYMETA.yml, Changes.bak, META.json and META.yml.
exe_files
@files = $self->exe_files;
Returns a list of files in the "bin/" and "script/" directory that has the executable flag set.
This method is used to build the EXE_FILES
list in Makefile.PL
.
ship
Used to ship a Perl distribution by running through these steps:
Find the dist file created by "build" or abort if it could not be found.
Run "before_ship" hook.
Add and commit the files changed in the "build" step.
Use "next_version" in App::git::ship to make a new tag and push all the changes to the "origin" git repository.
Upload the dist file to CPAN.
Run "after_ship" hook.
start
Used to generate Changes
and MANIFEST.SKIP
.
test_coverage
Use Devel::Cover to check test coverage for the distribution.
Set DEVEL_COVER_OPTIONS to pass on options to Devel::Cover. The default value will be set to:
DEVEL_COVER_OPTIONS=+ignore,t
COPYRIGHT AND LICENSE
Copyright (C) 2014, 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.
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org