NAME
App::Scaffolder::Puppet::Command - Base class for App::Scaffolder::Puppet commands
VERSION
version 0.003000
SYNOPSIS
use parent qw(App::Scaffolder::Puppet::Command);
DESCRIPTION
This class provides some specialized methods for the puppet*
commands.
In addition to the default template search path (see App::Scaffolder for details), this command base class will also look for templates in /etc/puppet/scaffolder_templates
or /usr/local/etc/puppet/scaffolder_templates
if they exist.
METHODS
get_target
Specialized get_target
version which uses the name (if it does not contain ::
, otherwise, it will be the current working directory) if no target was given.
get_variables
Specialized get_variables
version which returns the name of the module and other useful variables.
get_dist_name
Return the name of the dist this command is in.
get_options
Return additional options for this command.
get_extra_template_dirs
Extend the template search path with /etc/puppet/scaffolder_templates/<command name>
or /usr/local/etc/puppet/scaffolder_templates/<command name>
if they exist.
Result
The extended list with template directories.
SEE ALSO
AUTHOR
Manfred Stock <mstock@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Manfred Stock.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.