mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
successfully launched a server.
This commit is contained in:
parent
884442d9d1
commit
c563332f70
1 changed files with 4 additions and 5 deletions
|
@ -22,15 +22,14 @@ module Fog
|
|||
end
|
||||
|
||||
def bootstrap(new_attributes = {})
|
||||
|
||||
defaults = {
|
||||
:name => "fog-#{Time.now.to_i}",
|
||||
:image_name => "",
|
||||
:machine_type => "",
|
||||
:zone_name => "",
|
||||
:image_name => "gcel-12-04-v20130225",
|
||||
:machine_type => "n1-standard-1",
|
||||
:zone_name => "us-central1-a",
|
||||
}
|
||||
|
||||
server = create(defaults.merge(new_attributes))
|
||||
p server = create(defaults.merge(new_attributes))
|
||||
server.wait_for { ready? }
|
||||
server
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue