1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/serverlove/models/compute/servers.rb

27 lines
454 B
Ruby
Raw Normal View History

require 'fog/core/collection'
require 'fog/serverlove/models/compute/server'
module Fog
module Compute
class Serverlove
class Servers < Fog::Collection
model Fog::Compute::Serverlove::Server
def all
data = connection.get_servers.body
load(data)
end
def get(server_id)
2012-07-15 11:19:53 -04:00
data = connection.get_server(server_id).body
new(data)
end
end
end
end
end