|
NAMEModule::Setup::Plugin - Module::Setup Plugin Trigger Pointbefore_dump_config $configconfig setup Module::Setup::Plugin::Config::Basic after_setup_module_attributemodule attribute setup Module::Setup::Plugin::VC::SVN after_setup_template_varstemplate parameters setup append_template_fileadd module template file for new module Module::Setup::Plugin::VC::Git template_process $optionsfor template process Module::Setup::Plugin::Template replace_distribute_path $optionsfor distribute path rewrite phase check_skeleton_directoryfor test L<Module::Setup::Plugin::Test::Makefile> after_create_skeletonafter create_skeleton finalize_create_skeletonlast trigger of run method on skeleton directory finish_of_runlast hook of run method Module::Setup::Plugin::VC::SVK Plugin Example~/.module-setup/flavor/myflavor/plugins/plugin.pm
sub register {
my($self, ) = @_;
$self->add_trigger( check_skeleton_directory => \&check_skeleton_directory );
}
sub check_skeleton_directory {
my $self = shift;
}
~/.module-setup/flavor/myflavor/config.yaml config:
plugins:
- Config::Basic
- VC::SVN
- Template
- Test::Makefile
- +MyFlavor::Plugin
or command option $ module-setup --plugin=+MyFlavor::Plugin New::Module
|