X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FOyster%2FProvision.pm;h=85ef38a341b7c956f7cf59a38bddedfc093dfdc0;hb=ed86efb058625636ad03f42e14c254c9af4f1261;hp=2e4590da19562b8fae31902212a80da52584781d;hpb=6a2079a39d16a88ec15a2092cd5358eabc148ce2;p=p5sagit%2FOyster.git diff --git a/lib/Oyster/Provision.pm b/lib/Oyster/Provision.pm index 2e4590d..85ef38a 100644 --- a/lib/Oyster/Provision.pm +++ b/lib/Oyster/Provision.pm @@ -8,6 +8,7 @@ has 'name' => ( is => 'ro', isa => 'Str'); has 'size' => ( is => 'ro', isa => 'Str'); has 'image' => ( is => 'ro', isa => 'Str'); has 'pub_ssh' => ( is => 'ro', isa => 'Str'); +has 'config' => ( is => 'rw', isa => 'HashRef', required => 1 ); has 'provision_backend' => (is => 'rw', isa => 'Str', required => 1, default => 'Oyster::Provision::Rackspace' ); # TODO after provision, add the server's name with "oyster-" prefixed to the @@ -19,7 +20,7 @@ sub BUILD { my $self = shift; my $role = $self->provision_backend; - + eval "use $role"; "$role"->meta->apply($self); }