3 package Dist::Zilla::Plugin::Oyster::New;
5 our $VERSION = 0.01;# VERSION
8 use Dist::Zilla::Plugin::Oyster::Helper;
9 with qw( Dist::Zilla::Role::ModuleMaker );
11 use Dist::Zilla::File::FromCode;
16 if ( $Catalyst::Helper::VERSION <= 1.28 ) {
17 $self->log('getting authors from ENV variable AUTHOR not dzil');
20 # format $name to what C::Helper wants
21 my $name = $self->zilla->name;
24 # turn authors into a scalar it's what C::Helper wants
25 my $authors = join( ',', @{$self->zilla->authors} );
28 = Dist::Zilla::Plugin::Oyster::Helper->new({
31 _zilla_gatherer => $self,
34 # $name here is for backcompat in older versions of C::Devel
35 $helper->mk_app( $name );
37 __PACKAGE__->meta->make_immutable;
40 # ABSTRACT: create a new catalyst project with dzil new
48 Dist::Zilla::Plugin::Oyster::New - create a new Oyster project with dzil new
56 in C<{home}/.dzil/profiles/oyster/profile.ini>
58 [Oyster::New / :DefaultModuleMaker]
63 this plugin is used to generate the same files L<Catalyst::Helper> does when
64 C<catalyst.pl App::Name> is run.
68 You probably want more than just the bare minimum profile.ini, here's a more
69 functional one. I suggest putting it in
70 C<{home}/.dzil/profiles/oyster/profile.ini>
72 [Oyster::New / :DefaultModuleMaker]
75 Now you can run the following command to create a skeleton catalyst app.
77 dzil new -p oyster MyApp
79 Obviously C<MyApp> is arbitrary and can be named whatever you like.
87 required see L<Dist::Zilla::Role::ModuleMaker>
93 or features depending on your opinion and the nature of the issue. The
94 following are known "issue's".
98 =item * Doesn't create all the files catalyst.pl does
100 Some files like README, Makefile.PL and some of the tests, etc, are better
101 generated by C<dzil>. Use existing dzil plugins to generate these.
105 For all other problems use the bug tracker
113 TODO, see CONTRIBUTORS
117 =head1 COPYRIGHT AND LICENSE
119 This software is Copyright (c) 2010 by Caleb Cushing.
121 This is free software, licensed under:
123 The Artistic License 2.0