1 package Catalyst::Script::Create;
9 sub new_with_options { shift->new }
18 'nonew|force' => \$force,
19 'mech|mechanize' => \$mech,
23 pod2usage(1) if ( $help || !$ARGV[0] );
25 my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } );
27 pod2usage(1) unless $helper->mk_component( $appname, @ARGV );
35 boyosplace_create.pl - Create a new Catalyst Component
39 boyosplace_create.pl [options] model|view|controller name [helper] [options]
42 -force don't create a .new file where a file to be created exists
43 -mechanize use Test::WWW::Mechanize::Catalyst for tests if available
44 -help display this help and exits
47 boyosplace_create.pl controller My::Controller
48 boyosplace_create.pl controller My::Controller BindLex
49 boyosplace_create.pl -mechanize controller My::Controller
50 boyosplace_create.pl view My::View
51 boyosplace_create.pl view MyView TT
52 boyosplace_create.pl view TT TT
53 boyosplace_create.pl model My::Model
54 boyosplace_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
56 boyosplace_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
57 dbi:Pg:dbname=foo root 4321
60 perldoc Catalyst::Manual
61 perldoc Catalyst::Manual::Intro
65 Create a new Catalyst Component.
67 Existing component files are not overwritten. If any of the component files
68 to be created already exist the file will be written with a '.new' suffix.
69 This behavior can be suppressed with the C<-force> option.
73 Catalyst Contributors, see Catalyst.pm
77 This library is free software, you can redistribute it and/or modify
78 it under the same terms as Perl itself.