X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit%2FRepository.pm;h=fd19bab29210aafb9a0a518d845b1d782e047627;hb=caf4ff14ac06ea364ea51f725d041fd715e9682f;hp=94e9dde0a6692a8d1a2350770d20c38fee3430f4;hpb=787cc59d827d22afa8a3100daa42e5b9df3fe50d;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit/Repository.pm b/lib/App/Rgit/Repository.pm index 94e9dde..fd19bab 100644 --- a/lib/App/Rgit/Repository.pm +++ b/lib/App/Rgit/Repository.pm @@ -14,8 +14,6 @@ BEGIN { *WIFSIGNALED = sub { shift() & 127 } unless eval { WIFSIGNALED(0); 1 }; } -use Object::Tiny qw/fake repo bare name work/; - use App::Rgit::Utils qw/validate/; =head1 NAME @@ -53,7 +51,7 @@ sub new { my ($repo, $bare, $name, $work); if ($args{fake}) { $repo = $work = $dir; - } else { + } else { my @tries = ($dir); my @chunks = splitdir $dir; my $last = pop @chunks; @@ -79,13 +77,13 @@ sub new { $work = $repo; } } - $class->SUPER::new( + bless { fake => !!$args{fake}, repo => $repo, bare => $bare, name => $name, work => $work, - ); + }, $class; } =head2 C @@ -180,7 +178,13 @@ sub run { =head2 C -Accessors. +Read-only accessors. + +=cut + +BEGIN { + eval "sub $_ { \$_[0]->{$_} }" for qw/fake repo bare name work/; +} =head1 SEE ALSO @@ -189,7 +193,7 @@ L. =head1 AUTHOR Vincent Pit, C<< >>, L. - + You can contact me by mail or on C (vincent). =head1 BUGS