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

28 lines
604 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
#attribute :platform
#attribute :name
#attribute :os
#attribute :min_mem_size
#attribute :min_disk_size
def all
openvz = connection.template_list.body['response']['templates']['OpenVZ']
xen = connection.template_list.body['response']['templates']['Xen']
load(xen+openvz)
end
end
end
end
end