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/glesys/models/compute/templates.rb
2013-01-07 21:01:13 +00:00

22 lines
453 B
Ruby

require 'fog/core/collection'
require 'fog/glesys/models/compute/template'
module Fog
module Compute
class Glesys
class Templates < Fog::Collection
model Fog::Glesys::Compute::Template
def all
openvz = service.template_list.body['response']['templates']['OpenVZ']
xen = service.template_list.body['response']['templates']['Xen']
load(xen+openvz)
end
end
end
end
end