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

Merge pull request #1239 from maestrodev/joyent_bootstrap

Joyent server creation should not wait for server to be ready
This commit is contained in:
Wesley Beary 2012-10-31 09:26:58 -07:00
commit fa83cef6c7

View file

@ -15,12 +15,13 @@ module Fog
def create(params = {})
data = self.connection.create_machine(params).body
server = new(data)
server.wait_for { ready? }
server
end
def bootstrap
# XXX TOXO
def bootstrap(new_attributes = {})
server = create(new_attributes)
server.wait_for { ready? }
server
end
def get(machine_id)