lib/fog/storm_on_demand/models/compute/servers.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/storm_on_demand/models/compute/servers.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -8,15 +8,15 @@
class Servers < Fog::Collection
model Fog::Compute::StormOnDemand::Server
def all
- data = connection.list_servers.body['items']
+ data = service.list_servers.body['items']
load(data)
end
def get(uniq_id)
- server = connection.get_server(:uniq_id => uniq_id).body
+ server = service.get_server(:uniq_id => uniq_id).body
new(server)
end
end