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:
parent
a662e86dea
commit
7f91db2bd8
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue