]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit.pm
Don't depend on Object::Tiny anymore
[perl/modules/rgit.git] / lib / App / Rgit.pm
index 12917269cc4f5b2b55c25ee8b52a0d634f0ff795..a91f37ea8ae29af4af362e1ecd662ff900fc3dd0 100644 (file)
@@ -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<run>
@@ -70,7 +68,13 @@ sub run {
 
 =head2 C<command>
 
-Accessors.
+Read-only accessors.
+
+=cut
+
+BEGIN {
+ eval "sub $_ { \$_[0]->{$_} }" for qw/config command/;
+}
 
 =head1 SEE ALSO