Permalink
Browse files

require the service classes before instantiating them

  • Loading branch information...
1 parent f0b9397 commit 13811c172bbcb53f182eb6b296b88f69a631398d @doy committed Apr 15, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Resource/Pack/Resource.pm
@@ -37,6 +37,7 @@ sub install {
sub add_file {
my $self = shift;
+ require Resource::Pack::File;
$self->add_service(Resource::Pack::File->new(
@_,
parent => $self,
@@ -45,6 +46,7 @@ sub add_file {
sub add_dir {
my $self = shift;
+ require Resource::Pack::Dir;
$self->add_service(Resource::Pack::Dir->new(
@_,
parent => $self,
@@ -53,6 +55,7 @@ sub add_dir {
sub add_url {
my $self = shift;
+ require Resource::Pack::URL;
$self->add_service(Resource::Pack::URL->new(
@_,
parent => $self,

0 comments on commit 13811c1

Please sign in to comment.