use Moose;
-has 'api_username' => ( is => 'ro', isa => 'Str');
-has 'api_password' => ( is => 'ro', isa => 'Str');
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
=head1 SYNOPSIS
my $server = Oyster::Provision->new(
- name => 'Ostrica',
- size => '256',
- image => 'Meerkat',
+ name => 'Ostrica',
+ size => '1', # 256 MiB RAM
+ image => '69', # Ubuntu 10.10 Maverick
pub_ssh => "$ENV{HOME}/.ssh/id_rsa.pub",
);
$server->create;