From: iain Date: Sat, 20 Nov 2010 16:12:38 +0000 (+0000) Subject: added use to make dynamic roles work in provision X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1d534f1793dc8153fe522a04efde6f58ca3296b9;p=p5sagit%2FOyster.git added use to make dynamic roles work in provision --- diff --git a/lib/Oyster/Provision.pm b/lib/Oyster/Provision.pm index 4da50bc..2b82200 100644 --- a/lib/Oyster/Provision.pm +++ b/lib/Oyster/Provision.pm @@ -12,6 +12,7 @@ sub BUILD { my $role = $self->config()->{provision_backend}; + eval "use $role"; "$role"->meta->apply($self); }