Group
Extension

Matches 5

Module-Provision ( P/PJ/PJFL/module-provision/Module-Provision-0.42.1.tar.gz, PJFL, 2017; MetaCPAN )
Module-Provision/lib/Module/Provision.pm ( view source; MetaCPAN )
irectory F<~/.module_provision> is created and
populated with templates and an index file F<index.json>. The author
name, id, and email are derived from the system (the environment
variables C<AUTHOR>
 can be
overridden by the values in the configuration file
F<~/.module_provision/module_provision.json>

If the default builder (C<MB>) is used, then the project file
F<Build.PL> loads C<inc::Bob> whi
ration and Environment

The configuration file defaults to
F<~/.module_provision/module_provision.json>. All of the attributes
listed in L<Module::Provision::Config> can be set from the
configuration 
Module-Provision ( P/PJ/PJFL/module-provision/Module-Provision-0.42.1.tar.gz, PJFL, 2017; MetaCPAN )
Module-Provision/lib/Module/Provision/TraitFor/VCS.pm ( view source; MetaCPAN )
{
   my $self = shift; $self->chdir( $self->appldir );

   my $ignores = "LICENSE\nMANIFEST\nMETA.json\nMETA.yml\nREADME\nREADME.md";

   $self->run_cmd( "svn propset svn:ignore '${ignores}' ." );
   
Module-Provision ( P/PJ/PJFL/module-provision/Module-Provision-0.42.1.tar.gz, PJFL, 2017; MetaCPAN )
Module-Provision/lib/Module/Provision/Config.pm ( view source; MetaCPAN )
as 'template_index'   => is => 'lazy', isa => NonEmptySimpleStr,
   default             => 'index.json';

has 'test_env_vars'    => is => 'lazy', isa => ArrayRef,
   documentation       => 'Set these 

=item C<template_index>

Name of the file containing the index of templates. Defaults to F<index.json>

=item C<test_env_vars>

Array reference. Set these environment vars to true when testing. Defau
Module-Provision ( P/PJ/PJFL/module-provision/Module-Provision-0.42.1.tar.gz, PJFL, 2017; MetaCPAN )
Module-Provision/lib/Module/Provision/TraitFor/Rendering.pm ( view source; MetaCPAN )
:Rendering';

=head1 Description

Renders templates. Uses a list stored in the index file F<index.json> which
by default is in the F<~/.module_provision> directory

=head1 Configuration and Environmen
de = $self->init_templates;

Initialise the F<.module_provision> directory and create the F<index.json> file

=head2 render_template

   $target = $self->render_template( $template, $target );

Render
Module-Provision ( P/PJ/PJFL/module-provision/Module-Provision-0.42.1.tar.gz, PJFL, 2017; MetaCPAN )
Module-Provision/lib/Module/Provision/Base.pm ( view source; MetaCPAN )
 = io $self->distname.'-'.$self->dist_version;

   my $path = $dir ? $dir->catfile( 'META.json' ) : 'META.json';

   return CPAN::Meta->load_file( "${path}" );
}

1;

__END__

=pod

=encoding utf-8

=
ead2 load_meta

   $cpan_meta_object = $self->load_meta( $optional_directory );

Loads the F<META.json> file and returns and object

=head1 Diagnostics

None

=head1 Dependencies

=over 3

=item L<Cla

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.