Sha256: c09b103089481cd988e5473772649a9e979420b4878027e80bf8c79fae780733

Contents?: true

Size: 448 Bytes

Versions: 9

Compression:

Stored size: 448 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V4
        class Real
          def get_template(id)
            ovirt_attrs client.system_service.templates_service.template_service(id).get
          end
        end
        class Mock
          def get_template(_id)
            xml = read_xml "template.xml"
            ovirt_attrs OvirtSDK4::Reader.read(Nokogiri::XML(xml).root.to_s)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-ovirt-2.0.2 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-2.0.1 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-2.0.0 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v4/get_template.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v4/get_template.rb