Sha256: 6493dce7949f9a4e9d91d941c7b57a9401c7dce6268f425cd99ef357efca34f0

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Templates < Fog::Collection
        autoload :Template, File.expand_path('../template', __FILE__)

        model Fog::Vsphere::Compute::Template

        def all(filters = {})
          load service.list_templates(filters)
        end

        def get(id)
          new service.get_template(id)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.1.1 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.1.0 lib/fog/vsphere/models/compute/templates.rb
fog-vsphere-3.0.0 lib/fog/vsphere/models/compute/templates.rb