Sha256: 51cff93f2a004cd3fc9913e9dae9ac81ece3677678b9cb7c350e3d6d808b1fd4

Contents?: true

Size: 617 Bytes

Versions: 15

Compression:

Stored size: 617 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Tickets < Fog::Collection
        autoload :Ticket, File.expand_path('../ticket', __FILE__)

        model Fog::Compute::Vsphere::Ticket

        attr_accessor :server

        def create(opts = {})
          requires :server
          raise 'server must be a Fog::Compute::Vsphere::Server' unless server.is_a?(Fog::Compute::Vsphere::Server)
          new(
            service.vm_acquire_ticket(
              opts.merge(
                'instance_uuid' => server.instance_uuid
              )
            )
          )
        end
     end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-vsphere-2.5.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.4.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.3.0 lib/fog/vsphere/models/compute/tickets.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/models/compute/tickets.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/models/compute/tickets.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.2.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-1.7.0.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.1.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.1.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.0.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-2.0.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-1.13.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-1.13.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-1.12.0 lib/fog/vsphere/models/compute/tickets.rb