X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit%2FCommand%2FEach.pm;h=a42ddb886d988b06ed55fc2ce0e73e6261a93cd7;hb=67e585ffae69ce0c350a920658738d7864b1d54a;hp=155e9744ac37ffa1417b22537f3e294072c1f44c;hpb=4c6f2bc56bc50a662b2c2625bcc012d4757f9abf;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit/Command/Each.pm b/lib/App/Rgit/Command/Each.pm index 155e974..a42ddb8 100644 --- a/lib/App/Rgit/Command/Each.pm +++ b/lib/App/Rgit/Command/Each.pm @@ -11,11 +11,11 @@ App::Rgit::Command::Each - Class for commands to execute for each repository. =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION @@ -35,13 +35,14 @@ It implements : sub run { my $self = shift; + my $conf = shift; my $status = 0; - for (@{$self->repos}) { + for (@{$conf->repos}) { $_->chdir or next; - $status = $_->run($_[0], @{$self->args}); + $status = $_->run($conf, @{$self->args}); last if $status; } - $self->cwd_as_repo->chdir; + $conf->cwd_repo->chdir; return $status; }