Module::Provision::Base - Immutable data object
use Moose; extends 'Module::Provision::Base';
Creates an immutable data object required by the methods in the applied roles
Defines the following list of attributes which can be set from the command line;
base
The directory which will contain the new project. Defaults to the users home directory
branch
The name of the initial branch to create. Defaults to master for Git and trunk for SVN
builder
Which of the two build systems to use. Set to MB for Module::Build or DZ for Dist::Zilla
MB
DZ
config_class
The name of the configuration class
initial_wd
The working directory when the command was invoked
license
The name of the license used on the project. Defaults to perl
perl
perms
Permissions used to create files. Defaults to 644. Directories and programs have the execute bit turned on if the corresponding read bit is on
644
plugins
Optional trait to load and apply
project
The class name of the new project. Should be the first extra argument on the command line
repository
Name of the directory containing the SVN repository. Defaults to repository
vcs
The version control system to use. Defaults to none, can be git or svn
none
git
svn
Load and apply optional traits
$directory = $self->chdir( $directory );
Changes the current working directory to the one supplied and returns it. Throws if the operation was not successful
$cpan_meta_object = $self->load_meta( $optional_directory );
Loads the META.json file and returns and object
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2017 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Module::Provision, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Provision
CPAN shell
perl -MCPAN -e shell install Module::Provision
For more information on module installation, please visit the detailed CPAN module installation guide.