Changeset 8490 for lang/perl/App-Starter
- Timestamp:
- 03/29/08 11:12:37 (5 years ago)
- Location:
- lang/perl/App-Starter/trunk
- Files:
-
- 9 modified
- 2 moved
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (2 diffs)
-
bin/app-starter.pl (moved) (moved from lang/perl/App-Starter/trunk/bin/oreore-starter.pl) (2 diffs)
-
lib/App (moved) (moved from lang/perl/App-Starter/trunk/lib/OreOre)
-
lib/App/Starter.pm (modified) (3 diffs)
-
sample/bin/oreore-starter-catalyst.pl (modified) (2 diffs)
-
sample/conf/catalyst.yml (modified) (1 diff)
-
t/00-load.t (modified) (1 diff)
-
t/boilerplate.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-Starter/trunk/Changes
r8311 r8490 1 Revision history for OreOre-Starter1 Revision history for App-Starter 2 2 3 3 0.01 Date/time -
lang/perl/App-Starter/trunk/MANIFEST
r8321 r8490 3 3 Makefile.PL 4 4 README 5 lib/ OreOre/Starter.pm5 lib/App/Starter.pm 6 6 t/00-load.t 7 7 t/pod-coverage.t 8 8 t/pod.t 9 9 t/boilerplate.t 10 bin/ oreore-starter.pl10 bin/app-starter.pl 11 11 sample/* -
lang/perl/App-Starter/trunk/Makefile.PL
r8311 r8490 1 1 use inc::Module::Install; 2 name ' OreOre-Starter';3 all_from 'lib/ OreOre/Starter.pm';2 name 'App-Starter'; 3 all_from 'lib/App/Starter.pm'; 4 4 requires 'Test::More' => 0; 5 5 requires 'YAML::Syck' => 0; -
lang/perl/App-Starter/trunk/README
r8311 r8490 1 OreOre-Starter1 App-Starter 2 2 3 3 The README is used to introduce the module and provide instructions on … … 27 27 perldoc command. 28 28 29 perldoc OreOre::Starter29 perldoc App::Starter 30 30 31 31 You can also look for information at: 32 32 33 33 RT, CPAN's request tracker 34 http://rt.cpan.org/NoAuth/Bugs.html?Dist= OreOre-Starter34 http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Starter 35 35 36 36 AnnoCPAN, Annotated CPAN documentation 37 http://annocpan.org/dist/ OreOre-Starter37 http://annocpan.org/dist/App-Starter 38 38 39 39 CPAN Ratings 40 http://cpanratings.perl.org/d/ OreOre-Starter40 http://cpanratings.perl.org/d/App-Starter 41 41 42 42 Search CPAN 43 http://search.cpan.org/dist/ OreOre-Starter43 http://search.cpan.org/dist/App-Starter 44 44 45 45 -
lang/perl/App-Starter/trunk/bin/app-starter.pl
r8346 r8490 4 4 use warnings; 5 5 use FindBin::libs; 6 use OreOre::Starter;6 use App::Starter; 7 7 use Getopt::Long; 8 8 9 9 my %opt; 10 10 GetOptions( \%opt, 'config=s' , 'name=s' , 'template=s' ); 11 OreOre::Starter->new( { config => $opt{config} , name => $opt{name} , template => $opt{template} } )->create;11 App::Starter->new( { config => $opt{config} , name => $opt{name} , template => $opt{template} } )->create; 12 12 13 13 1; … … 16 16 =head1 NAME 17 17 18 oreore-script.pl - OreOre::Starter script file.18 app-script.pl - App::Starter script file. 19 19 20 20 =head1 SYNOPSYS 21 21 22 oreore-script.pl --config conf/your-config.yml --name my_application22 app-script.pl --config conf/your-config.yml --name my_application 23 23 24 #or e25 26 oreore-script.pl --template your_skel --name my_application24 #or even 25 26 app-script.pl --template your_skel --name my_application 27 27 28 28 =head1 SEE ALSO 29 29 30 L< OreOre::Starter>30 L<App::Starter> 31 31 32 32 =head1 AUTHOR -
lang/perl/App-Starter/trunk/lib/App/Starter.pm
r8488 r8490 1 package OreOre::Starter;1 package App::Starter; 2 2 3 3 use warnings; … … 32 32 33 33 if ( $config->{template} ) { 34 $config->{from} = File::Spec->catfile( $ENV{HOME} , '/. oreore/skel', $config->{template} ) ;35 $self->{config} = File::Spec->catfile( $ENV{HOME} , '/. oreore/conf' , $config->{template} . '.yml' );34 $config->{from} = File::Spec->catfile( $ENV{HOME} , '/.app/skel', $config->{template} ) ; 35 $self->{config} = File::Spec->catfile( $ENV{HOME} , '/.app/conf' , $config->{template} . '.yml' ); 36 36 }; 37 37 … … 117 117 =head1 NAME 118 118 119 OreOre::Starter - OreOreStarter119 App::Starter - App Starter 120 120 121 121 =head1 SYNPSYS 122 122 123 my $app = OreOre::Starter->new( { config => ' /home/tomyhero/work/OreOre-Starter/conf/config.yaml' } )->create;123 my $app = App::Starter->new( { config => ' /home/tomyhero/work/App-Starter/conf/config.yaml' } )->create; 124 124 125 125 # or 126 126 127 my $app = OreOre::Starter->new( { config => ' /home/tomyhero/work/OreOre-Starter/conf/config.yaml' , from => '/tmp/a' , name => 'my_app' , replace => { module => 'MyApp' } } )->create;127 my $app = App::Starter->new( { config => ' /home/tomyhero/work/App-Starter/conf/config.yaml' , from => '/tmp/a' , name => 'my_app' , replace => { module => 'MyApp' } } )->create; 128 128 129 129 # or 130 # This setting map to ./oreore/skell/pand/* as from and ./oreore/conf/panda.yml as config131 my $app = OreOre::Starter->new( { template => 'panda' , name =>'foo' } )->create;130 # This setting map to ~/.app/skell/pand/* as from and ~/.app/conf/panda.yml as config 131 my $app = App::Starter->new( { template => 'panda' , name =>'foo' } )->create; 132 132 133 133 =head1 DESCRIPTION -
lang/perl/App-Starter/trunk/sample/bin/oreore-starter-catalyst.pl
r8320 r8490 3 3 use strict; 4 4 use warnings; 5 use OreOre::Starter;5 use App::Starter; 6 6 use Getopt::Long; 7 7 8 8 my %opt; 9 9 GetOptions( \%opt, 'config=s' , 'name=s'); 10 OreOre::Starter->new( { config => $opt{config} , name => $opt{name} , replace => { module => $opt{name} , appprefix => lc $opt{name} } } )->create;10 App::Starter->new( { config => $opt{config} , name => $opt{name} , replace => { module => $opt{name} , appprefix => lc $opt{name} } } )->create; 11 11 12 12 1; … … 15 15 =head1 NAME 16 16 17 oreore-script.pl - OreOre::Starter script file.17 app-starter-catalyst.pl - App::Starter script file. 18 18 19 19 =head1 SYNOPSYS 20 20 21 oreore-script.pl --config conf/your-config.yml --name my_application21 app-starter-catalyst.pl --config conf/your-config.yml --name my_application 22 22 23 23 =head1 SEE ALSO 24 24 25 L< OreOre::Starter>25 L<App::Starter> 26 26 27 27 =head1 AUTHOR -
lang/perl/App-Starter/trunk/sample/conf/catalyst.yml
r8320 r8490 1 from : /home/tomyhero/work/tomyhero-private/coderepos/ OreOre-Starter/trunk/sample/skel/oreore-catalyst1 from : /home/tomyhero/work/tomyhero-private/coderepos/App-Starter/trunk/sample/skel/app-catalyst 2 2 tag_style : star 3 3 ignore : -
lang/perl/App-Starter/trunk/t/00-load.t
r8311 r8490 4 4 5 5 BEGIN { 6 use_ok( ' OreOre::Starter' );6 use_ok( 'App::Starter' ); 7 7 } 8 8 9 diag( "Testing OreOre::Starter $OreOre::Starter::VERSION, Perl $], $^X" );9 diag( "Testing App::Starter $App::Starter::VERSION, Perl $], $^X" ); -
lang/perl/App-Starter/trunk/t/boilerplate.t
r8311 r8490 49 49 ); 50 50 51 module_boilerplate_ok('lib/ OreOre/Starter.pm');51 module_boilerplate_ok('lib/App/Starter.pm'); 52 52 53 53
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)