X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=lib%2FApp%2FRgit.pm;h=a91f37ea8ae29af4af362e1ecd662ff900fc3dd0;hp=12917269cc4f5b2b55c25ee8b52a0d634f0ff795;hb=76ba389e3711e8f254aea83f9b3b7b221c0517a8;hpb=dc668e3c302569ed2b5eb2ed893247308f22528a diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 1291726..a91f37e 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