Class: RunaboveInstance
Instance Attribute Summary
Attributes inherited from Runabove
#flavor, #image, #instance, #labs, #me, #price, #project, #region, #ssh, #stackMysql, #storage, #time, #token
Instance Method Summary
collapse
Methods inherited from Runabove
#createConsumerKey, #initialize, #loadObjects, #raw_call, #timeServer
Constructor Details
This class inherits a constructor from Runabove
Instance Method Details
#create(data) ⇒ Object
203
204
205
|
# File 'lib/runabove.rb', line 203
def create(data)
raw_call("post", "/instance", data)
end
|
#delete(id) ⇒ Object
215
216
217
|
# File 'lib/runabove.rb', line 215
def delete(id)
raw_call("delete", "/instance/#{id}")
end
|
#detail(id) ⇒ Object
211
212
213
|
# File 'lib/runabove.rb', line 211
def detail(id)
raw_call("get", "/instance/#{id}")
end
|
#list ⇒ Object
199
200
201
|
# File 'lib/runabove.rb', line 199
def list
raw_call("get", "/instance")
end
|
#quota ⇒ Object
207
208
209
|
# File 'lib/runabove.rb', line 207
def quota
raw_call("get", "/instance/quota")
end
|
#update(id, data) ⇒ Object
219
220
221
|
# File 'lib/runabove.rb', line 219
def update(id, data)
raw_call("put", "/instance/#{id}", data)
end
|
#vnc(id) ⇒ Object
223
224
225
|
# File 'lib/runabove.rb', line 223
def vnc(id)
raw_call("get", "/instance/#{id}/vnc")
end
|