From: Marco Fontani Date: Sat, 20 Nov 2010 16:45:29 +0000 (+0000) Subject: Moved attributes to right parent X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=10d26b8dcd7ce5a0a6ecdb76e2ac361964f272b2;p=p5sagit%2FOyster.git Moved attributes to right parent --- diff --git a/lib/Oyster/Provision.pm b/lib/Oyster/Provision.pm index 3db07ee..36cd7cc 100644 --- a/lib/Oyster/Provision.pm +++ b/lib/Oyster/Provision.pm @@ -2,6 +2,12 @@ package Oyster::Provision; use Moose; +has 'name' => ( is => 'ro', isa => 'Str', required => 1 ); +has 'size' => ( is => 'ro', isa => 'Str', required => 1 ); +has 'image' => ( is => 'ro', isa => 'Str', required => 1 ); +has 'pub_ssh' => ( is => 'ro', isa => 'Str', required => 1 ); + + sub config { return {provision_backend => 'Oyster::Provision::Rackspace'}; } diff --git a/lib/Oyster/Provision/Rackspace.pm b/lib/Oyster/Provision/Rackspace.pm index 7e80993..0ede957 100644 --- a/lib/Oyster/Provision/Rackspace.pm +++ b/lib/Oyster/Provision/Rackspace.pm @@ -1,11 +1,6 @@ package Oyster::Provision::Rackspace; use Moose::Role; -has 'name' => ( is => 'ro', isa => 'Str', required => 1 ); -has 'size' => ( is => 'ro', isa => 'Str', required => 1 ); -has 'image' => ( is => 'ro', isa => 'Str', required => 1 ); -has 'pub_ssh' => ( is => 'ro', isa => 'Str', required => 1 ); - requires 'config'; sub create {