1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

add a default flavor for rackspace server

This commit is contained in:
geemus 2010-06-19 17:46:21 -07:00
parent a662e86dea
commit 7f91db2bd8
2 changed files with 6 additions and 1 deletions

View file

@ -31,7 +31,7 @@ module Fog
attribute :state, 'instanceState'
attribute :user_data
def initialize(attributes)
def initialize(attributes={})
@groups ||= ["default"]
@flavor_id ||= 'm1.small'
super

View file

@ -20,6 +20,11 @@ module Fog
attr_accessor :password, :private_key_path, :public_key_path
def initialize(attributes={})
@flavor_id ||= 1
super
end
def destroy
requires :id
connection.delete_server(@id)