lib/fog/storm_on_demand/models/compute/servers.rb in fog-maestrodev-1.8.0.20130114204828 vs lib/fog/storm_on_demand/models/compute/servers.rb in fog-maestrodev-1.14.0.20130806165225
- old
+ new
@@ -7,16 +7,21 @@
class Servers < Fog::Collection
model Fog::Compute::StormOnDemand::Server
- def all
- data = service.list_servers.body['items']
+ def all(options={})
+ data = service.list_servers(options).body['items']
load(data)
end
def get(uniq_id)
server = service.get_server(:uniq_id => uniq_id).body
+ new(server)
+ end
+
+ def create(options)
+ server = service.create_server(options).body
new(server)
end
end