« auto/share/dist/Setup-Project/tmpl/Amon2Sample/__PACKAGE__/lib/__PACKAGE__/Web.pm
↑ Summary
Setup/Project/Functions.pm »
| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | use Setup::Project::CLI qw(usage); | ||
| 5 | use Setup::Project::Functions; | ||
| 6 | |||
| 7 | my $cli = Setup::Project::CLI->new; | ||
| 8 | $cli->version('0.01'); | ||
| 9 | |||
| 10 | my %vars = equal_style($cli->argv); | ||
| 11 | |||
| 12 | my $maker = $cli->maker(tmpl_dir => scriptdir('<% $flavor_name %>')); | ||
| 13 | |||
| 14 | $maker->file_vars( | ||
| 15 | %vars, | ||
| 16 | flavor_info => flavor_info(), | ||
| 17 | ); | ||
| 18 | $maker->filename_vars(); | ||
| 19 | |||
| 20 | $maker->safely_run(sub { | ||
| 21 | $maker->render_all_files; | ||
| 22 | }); |