X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit.pm;h=1c8873d714b3a8a360a6091c38f123b658467a39;hb=caf4ff14ac06ea364ea51f725d041fd715e9682f;hp=12917269cc4f5b2b55c25ee8b52a0d634f0ff795;hpb=787cc59d827d22afa8a3100daa42e5b9df3fe50d;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 1291726..1c8873d 100644 --- a/lib/App/Rgit.pm +++ b/lib/App/Rgit.pm @@ -3,8 +3,6 @@ package App::Rgit; use strict; use warnings; -use Object::Tiny qw/config command/; - use App::Rgit::Command; use App::Rgit::Config; use App::Rgit::Utils qw/validate/; @@ -49,10 +47,10 @@ sub new { policy => $args{policy}, ); return unless defined $command; - $class->SUPER::new( + bless { config => $config, command => $command, - ); + }, $class; } =head2 C @@ -70,7 +68,13 @@ sub run { =head2 C -Accessors. +Read-only accessors. + +=cut + +BEGIN { + eval "sub $_ { \$_[0]->{$_} }" for qw/config command/; +} =head1 SEE ALSO @@ -79,7 +83,7 @@ L. =head1 AUTHOR Vincent Pit, C<< >>, L. - + You can contact me by mail or on C (vincent). =head1 BUGS