Sha256: 2bd26872989881bb64882591431bd555d79dbadf8b3c35dd69bb9a1bd9ded7d9

Contents?: true

Size: 729 Bytes

Versions: 6

Compression:

Stored size: 729 Bytes

Contents

module ChefProvisioningVsphereStubs
  class VsphereHelperStub < ChefProvisioningVsphere::VsphereHelper
    def initialize
    end

    def network_device_changes(action_handler, vm_template, options)
      [
        [RbVmomi::VIM::VirtualDeviceConfigSpec.new],
        [RbVmomi::VIM::VirtualDeviceConfigSpec.new]
      ]
    end

    def find_host(host_name)
      RbVmomi::VIM::HostSystem.new(nil, nil)
    end

    def find_pool(pool_name)
      RbVmomi::VIM::ResourcePool.new(nil, nil)
    end

    def find_datastore(datastore_name)
      RbVmomi::VIM::Datastore.new
    end

    def find_customization_spec(options)
      RbVmomi::VIM::CustomizationSpec.new
    end

    def create_delta_disk(vm_template)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chef-provisioning-vsphere-0.5.7.dev5 spec/unit_tests/support/vsphere_helper_stub.rb
chef-provisioning-vsphere-0.5.7.dev4 spec/unit_tests/support/vsphere_helper_stub.rb
chef-provisioning-vsphere-0.5.7.dev3 spec/unit_tests/support/vsphere_helper_stub.rb
chef-provisioning-vsphere-0.5.7.dev2 spec/unit_tests/support/vsphere_helper_stub.rb
chef-provisioning-vsphere-0.5.7.dev1 spec/unit_tests/support/vsphere_helper_stub.rb
chef-provisioning-vsphere-0.5.7.dev spec/unit_tests/support/vsphere_helper_stub.rb