2011-08-10 15:03:51 +02:00
|
|
|
require 'fog/core/collection'
|
2011-09-08 16:07:04 -05:00
|
|
|
require 'fog/glesys/models/compute/template'
|
2011-08-10 15:03:51 +02:00
|
|
|
|
|
|
|
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
|