mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
459 B
Ruby
22 lines
459 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 = connection.template_list.body['response']['templates']['OpenVZ']
|
|
xen = connection.template_list.body['response']['templates']['Xen']
|
|
|
|
load(xen+openvz)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|