=head1 VERSION
-Version 0.01
+Version 0.06
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.06';
=head1 DESCRIPTION
sub new {
my ($class, %args) = &validate;
my $config = App::Rgit::Config->new(
- root => $args{root},
- git => $args{git},
+ root => $args{root},
+ git => $args{git},
+ debug => $args{debug},
);
return unless defined $config;
+ my $command = App::Rgit::Command->new(
+ cmd => $args{cmd},
+ args => $args{args},
+ policy => $args{policy},
+ );
+ return unless defined $command;
$class->SUPER::new(
config => $config,
- command => App::Rgit::Command->new(
- cmd => $args{cmd},
- args => $args{args},
- repos => $config->repos,
- )
+ command => $command,
);
}
=head1 COPYRIGHT & LICENSE
-Copyright 2008 Vincent Pit, all rights reserved.
+Copyright 2008-2009 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.