added use to make dynamic roles work in provision
iain [Sat, 20 Nov 2010 16:12:38 +0000 (16:12 +0000)]
lib/Oyster/Provision.pm

index 4da50bc..2b82200 100644 (file)
@@ -12,6 +12,7 @@ sub BUILD {
 
     my $role = $self->config()->{provision_backend};
 
+    eval "use $role";
     "$role"->meta->apply($self);
 }