Changeset 8490 for lang/perl/App-Starter

Show
Ignore:
Timestamp:
03/29/08 11:12:37 (5 years ago)
Author:
tomyhero
Message:

lang/perl/App-Starter : rename OreOre? to App

Location:
lang/perl/App-Starter/trunk
Files:
9 modified
2 moved

Legend:

Unmodified
Added
Removed
  • lang/perl/App-Starter/trunk/Changes

    r8311 r8490  
    1 Revision history for OreOre-Starter 
     1Revision history for App-Starter 
    22 
    330.01    Date/time 
  • lang/perl/App-Starter/trunk/MANIFEST

    r8321 r8490  
    33Makefile.PL 
    44README 
    5 lib/OreOre/Starter.pm 
     5lib/App/Starter.pm 
    66t/00-load.t 
    77t/pod-coverage.t 
    88t/pod.t 
    99t/boilerplate.t 
    10 bin/oreore-starter.pl 
     10bin/app-starter.pl 
    1111sample/* 
  • lang/perl/App-Starter/trunk/Makefile.PL

    r8311 r8490  
    11use inc::Module::Install; 
    2 name        'OreOre-Starter'; 
    3 all_from    'lib/OreOre/Starter.pm'; 
     2name        'App-Starter'; 
     3all_from    'lib/App/Starter.pm'; 
    44requires    'Test::More'        => 0; 
    55requires    'YAML::Syck'        => 0; 
  • lang/perl/App-Starter/trunk/README

    r8311 r8490  
    1 OreOre-Starter 
     1App-Starter 
    22 
    33The README is used to introduce the module and provide instructions on 
     
    2727perldoc command. 
    2828 
    29     perldoc OreOre::Starter 
     29    perldoc App::Starter 
    3030 
    3131You can also look for information at: 
    3232 
    3333    RT, CPAN's request tracker 
    34         http://rt.cpan.org/NoAuth/Bugs.html?Dist=OreOre-Starter 
     34        http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Starter 
    3535 
    3636    AnnoCPAN, Annotated CPAN documentation 
    37         http://annocpan.org/dist/OreOre-Starter 
     37        http://annocpan.org/dist/App-Starter 
    3838 
    3939    CPAN Ratings 
    40         http://cpanratings.perl.org/d/OreOre-Starter 
     40        http://cpanratings.perl.org/d/App-Starter 
    4141 
    4242    Search CPAN 
    43         http://search.cpan.org/dist/OreOre-Starter 
     43        http://search.cpan.org/dist/App-Starter 
    4444 
    4545 
  • lang/perl/App-Starter/trunk/bin/app-starter.pl

    r8346 r8490  
    44use warnings; 
    55use FindBin::libs; 
    6 use OreOre::Starter; 
     6use App::Starter; 
    77use Getopt::Long; 
    88 
    99my %opt; 
    1010GetOptions( \%opt, 'config=s' , 'name=s' , 'template=s' ); 
    11 OreOre::Starter->new( { config => $opt{config} , name => $opt{name} , template => $opt{template}  } )->create; 
     11App::Starter->new( { config => $opt{config} , name => $opt{name} , template => $opt{template}  } )->create; 
    1212 
    13131; 
     
    1616=head1 NAME 
    1717 
    18 oreore-script.pl - OreOre::Starter script file. 
     18app-script.pl - App::Starter script file. 
    1919 
    2020=head1 SYNOPSYS 
    2121 
    22  oreore-script.pl --config conf/your-config.yml --name my_application 
     22 app-script.pl --config conf/your-config.yml --name my_application 
    2323 
    24  #ore 
    25  
    26  oreore-script.pl --template your_skel  --name my_application 
     24 #or even  
     25  
     26 app-script.pl --template your_skel  --name my_application 
    2727 
    2828=head1 SEE ALSO 
    2929 
    30 L<OreOre::Starter> 
     30L<App::Starter> 
    3131 
    3232=head1 AUTHOR 
  • lang/perl/App-Starter/trunk/lib/App/Starter.pm

    r8488 r8490  
    1 package OreOre::Starter; 
     1package App::Starter; 
    22 
    33use warnings; 
     
    3232 
    3333    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' ); 
    3636    }; 
    3737 
     
    117117=head1 NAME 
    118118 
    119 OreOre::Starter - OreOre Starter 
     119App::Starter - App Starter 
    120120 
    121121=head1 SYNPSYS 
    122122 
    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; 
    124124  
    125125 # or 
    126126 
    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; 
    128128  
    129129 # or 
    130  # This setting map to ./oreore/skell/pand/* as from and ./oreore/conf/panda.yml  as config 
    131  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; 
    132132 
    133133=head1 DESCRIPTION 
  • lang/perl/App-Starter/trunk/sample/bin/oreore-starter-catalyst.pl

    r8320 r8490  
    33use strict; 
    44use warnings; 
    5 use OreOre::Starter; 
     5use App::Starter; 
    66use Getopt::Long; 
    77 
    88my %opt; 
    99GetOptions( \%opt, 'config=s' , 'name=s'); 
    10 OreOre::Starter->new( { config => $opt{config} , name => $opt{name} , replace => { module => $opt{name} , appprefix => lc $opt{name}  }  } )->create; 
     10App::Starter->new( { config => $opt{config} , name => $opt{name} , replace => { module => $opt{name} , appprefix => lc $opt{name}  }  } )->create; 
    1111 
    12121; 
     
    1515=head1 NAME 
    1616 
    17 oreore-script.pl - OreOre::Starter script file. 
     17app-starter-catalyst.pl - App::Starter script file. 
    1818 
    1919=head1 SYNOPSYS 
    2020 
    21  oreore-script.pl --config conf/your-config.yml --name my_application 
     21 app-starter-catalyst.pl --config conf/your-config.yml --name my_application 
    2222 
    2323=head1 SEE ALSO 
    2424 
    25 L<OreOre::Starter> 
     25L<App::Starter> 
    2626 
    2727=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-catalyst 
     1from    : /home/tomyhero/work/tomyhero-private/coderepos/App-Starter/trunk/sample/skel/app-catalyst 
    22tag_style : star 
    33ignore  : 
  • lang/perl/App-Starter/trunk/t/00-load.t

    r8311 r8490  
    44 
    55BEGIN { 
    6         use_ok( 'OreOre::Starter' ); 
     6        use_ok( 'App::Starter' ); 
    77} 
    88 
    9 diag( "Testing OreOre::Starter $OreOre::Starter::VERSION, Perl $], $^X" ); 
     9diag( "Testing App::Starter $App::Starter::VERSION, Perl $], $^X" ); 
  • lang/perl/App-Starter/trunk/t/boilerplate.t

    r8311 r8490  
    4949  ); 
    5050 
    51   module_boilerplate_ok('lib/OreOre/Starter.pm'); 
     51  module_boilerplate_ok('lib/App/Starter.pm'); 
    5252 
    5353