Changeset 34437
- Timestamp:
- 07/15/09 17:47:38 (4 years ago)
- Location:
- lang/perl/App-Hachero/trunk
- Files:
-
- 14 modified
-
lib/App/Hachero/Plugin/Fetch/Gunzip.pm (modified) (1 diff)
-
lib/App/Hachero/Plugin/Fetch/S3.pm (modified) (1 diff)
-
t/plugin/analyze/03_useragent.t (modified) (2 diffs)
-
t/plugin/classify/03_useragent.t (modified) (1 diff)
-
t/plugin/fetch/01_ftp.t (modified) (1 diff)
-
t/plugin/fetch/02_ftp_multi.t (modified) (2 diffs)
-
t/plugin/fetch/03_s3.t (modified) (1 diff)
-
t/plugin/input/02_ftp.t (modified) (1 diff)
-
t/plugin/input/03_file.t (modified) (2 diffs)
-
t/plugin/input/04_file_rule.t (modified) (1 diff)
-
t/plugin/output/01_dbic.t (modified) (1 diff)
-
t/plugin/output/02_dbic_countup.t (modified) (1 diff)
-
t/plugin/output/03_dbic_failure.t (modified) (1 diff)
-
t/plugin/output/04_tt.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-Hachero/trunk/lib/App/Hachero/Plugin/Fetch/Gunzip.pm
r34436 r34437 29 29 30 30 1; 31 __END__ 32 33 =pod 34 35 =head1 NAME 36 37 App::Hachero::Plugin::Fetch::Gunzip - gunzips '*.gz' files in work_path 38 39 =head1 SYNOPSIS 40 41 --- 42 global: 43 work_path: /path/to/your/work_path 44 plugins: 45 - module: Fetch::Gunzip 46 47 =head1 DESCRIPTION 48 49 Gunzips '*.gz' files in work_path. 50 51 =head2 implemented hooks 52 53 =over 4 54 55 =item * fetch 56 57 =back 58 59 =head1 AUTHOR 60 61 Nobuo Danjou <nobuo.danjou@gmail.com> 62 63 =head1 SEE ALSO 64 65 L<App::Hachero> 66 67 L<Net::Amazon::S3> 68 69 =cut -
lang/perl/App-Hachero/trunk/lib/App/Hachero/Plugin/Fetch/S3.pm
r34436 r34437 39 39 40 40 1; 41 __END__ 42 43 =pod 44 45 =head1 NAME 46 47 App::Hachero::Plugin::Fetch::S3 - fetchs logs from S3 48 49 =head1 SYNOPSIS 50 51 --- 52 global: 53 work_path: /path/to/your/work_path 54 plugins: 55 - module: Fetch::S3 56 config: 57 aws_access_key_id: my_aws_access_key_id 58 aws_secret_access_key: my_aws_secret_access_key 59 bucket: my_bucket 60 prefix: access_log 61 62 =head1 DESCRIPTION 63 64 fetchs logs from S3. 65 66 =head2 implemented hooks 67 68 =over 4 69 70 =item * fetch 71 72 =back 73 74 =head1 AUTHOR 75 76 Nobuo Danjou <nobuo.danjou@gmail.com> 77 78 =head1 SEE ALSO 79 80 L<App::Hachero> 81 82 L<Net::Amazon::S3> 83 84 =cut -
lang/perl/App-Hachero/trunk/t/plugin/analyze/03_useragent.t
r31968 r34437 5 5 6 6 BEGIN { 7 eval { require 'HTTP::DetectUserAgent'};8 if ($ !) {7 eval { require HTTP::DetectUserAgent }; 8 if ($@) { 9 9 plan skip_all => 'no HTTP::DetectUserAgent found'; 10 } else {11 plan tests => (1 * blocks);12 10 } 13 11 } 12 13 plan tests => (1 * blocks); 14 14 15 15 my $config = { … … 49 49 my $value = (values %{$app->result->{UserAgent}->data})[0]; 50 50 is_deeply $value, $block->expected; 51 } 51 }; 52 52 53 __ END__53 __DATA__ 54 54 === test1 55 55 --- input -
lang/perl/App-Hachero/trunk/t/plugin/classify/03_useragent.t
r31968 r34437 5 5 6 6 BEGIN { 7 eval { require 'HTTP::DetectUserAgent'};8 if ($ !) {7 eval { require HTTP::DetectUserAgent }; 8 if ($@) { 9 9 plan skip_all => 'no HTTP::DetectUserAgent found'; 10 } else {11 plan tests => (1 * blocks);12 10 } 13 11 } 12 13 plan tests => (1 * blocks); 14 14 15 15 my $config = { -
lang/perl/App-Hachero/trunk/t/plugin/fetch/01_ftp.t
r34436 r34437 6 6 7 7 BEGIN { 8 eval {require 'Net::FTP'};9 if ($ !) {8 eval {require Net::FTP}; 9 if ($@) { 10 10 plan skip_all => 'no Net::FTP found'; 11 11 } elsif ($ENV{HACHERO_TEST_FTP}) { -
lang/perl/App-Hachero/trunk/t/plugin/fetch/02_ftp_multi.t
r31968 r34437 6 6 7 7 BEGIN { 8 eval {require 'Net::FTP'};9 if ($ !) {8 eval {require Net::FTP}; 9 if ($@) { 10 10 plan skip_all => 'no Net::FTP found'; 11 11 } elsif ($ENV{HACHERO_TEST_FTP}) { … … 13 13 use_ok('App::Hachero::Plugin::Fetch::FTP'); 14 14 } else { 15 plan skip_all => 'set " TEST_HACHERO_FTP" to run this test.';15 plan skip_all => 'set "HACHERO_TEST_FTP" to run this test.'; 16 16 } 17 17 } -
lang/perl/App-Hachero/trunk/t/plugin/fetch/03_s3.t
r34436 r34437 8 8 9 9 BEGIN { 10 eval {require 'Net::Amazon::S3'};10 eval {require Net::Amazon::S3}; 11 11 if ($@) { 12 12 plan skip_all => 'no Net::Amazon::S3 found'; -
lang/perl/App-Hachero/trunk/t/plugin/input/02_ftp.t
r31968 r34437 5 5 6 6 BEGIN { 7 eval {require 'Net::FTP'};8 if ($ !) {7 eval {require Net::FTP}; 8 if ($@) { 9 9 plan skip_all => 'no Net::FTP found'; 10 10 } elsif ($ENV{HACHERO_TEST_FTP}) { -
lang/perl/App-Hachero/trunk/t/plugin/input/03_file.t
r31968 r34437 5 5 6 6 BEGIN { 7 eval {require 'File::Find::Rule'; require 'File::Find::Rule::Age';};7 eval {require File::Find::Rule; require File::Find::Rule::Age;}; 8 8 if ($@) { 9 9 plan skip_all => 'File::Find::Rule or File::Find::Rule::Age not found'; … … 43 43 my @result; 44 44 for (@expected) { 45 $app-> run_hook('input');45 $app->set_currentline; 46 46 push @result, $app->currentline; 47 47 } -
lang/perl/App-Hachero/trunk/t/plugin/input/04_file_rule.t
r31968 r34437 6 6 7 7 BEGIN { 8 eval {require 'File::Find::Rule'; require 'File::Find::Rule::Age';};8 eval {require File::Find::Rule; require File::Find::Rule::Age;}; 9 9 if ($@) { 10 10 plan skip_all => 'File::Find::Rule or File::Find::Rule::Age not found'; 11 } else {12 plan tests => 1 * blocks;13 11 } 14 12 } 13 plan tests => 1 * blocks; 15 14 16 15 filters { -
lang/perl/App-Hachero/trunk/t/plugin/output/01_dbic.t
r31968 r34437 6 6 7 7 BEGIN { 8 eval {require 'DBIx::Class::Schema::Loader'};8 eval {require DBIx::Class::Schema::Loader}; 9 9 if ($@) { 10 10 plan skip_all => 'no DBIx::Class::Schema::Loader found'; -
lang/perl/App-Hachero/trunk/t/plugin/output/02_dbic_countup.t
r31968 r34437 6 6 7 7 BEGIN { 8 eval {require 'DBIx::Class::Schema::Loader'};8 eval {require DBIx::Class::Schema::Loader}; 9 9 if ($@) { 10 10 plan skip_all => 'no DBIx::Class::Schema::Loader found'; -
lang/perl/App-Hachero/trunk/t/plugin/output/03_dbic_failure.t
r31968 r34437 7 7 8 8 BEGIN { 9 eval {require 'DBIx::Class::Schema::Loader'};9 eval {require DBIx::Class::Schema::Loader}; 10 10 if ($@) { 11 11 plan skip_all => 'no DBIx::Class::Schema::Loader found'; -
lang/perl/App-Hachero/trunk/t/plugin/output/04_tt.t
r31968 r34437 7 7 8 8 BEGIN { 9 eval {require 'Template'};9 eval {require Template}; 10 10 if ($@) { 11 11 plan skip_all => 'no Template found'; 12 } else {13 plan tests => (1 * blocks) + 1;14 use_ok 'App::Hachero::Plugin::Output::TT';15 12 } 16 13 } 14 15 plan tests => (1 * blocks) + 1; 16 use_ok 'App::Hachero::Plugin::Output::TT'; 17 17 18 18 filters {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)