Sha256: d14c2bf77ae6c562588860b224bc1abbf87c1d407b1022d678f8e2d8aac20ab6

Contents?: true

Size: 591 Bytes

Versions: 15

Compression:

Stored size: 591 Bytes

Contents

module VagrantPlugins
  module Skytap
    module Action
      module MixinMachineIndex
        attr_reader :env

        # The global machine index lives under ~/.vagrant.d by default, and
        # contains a hash of entries for all guest machines on the host.

        def machine_index
          @machine_index ||= env[:machine].env.machine_index
        end

        # NOTE: #get locks the machine. Make sure to #release(entry)
        # when finished.
        def machine_index_entry
          entry = machine_index.get(env[:machine].index_uuid)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vagrant-skytap-0.2.3 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.2.2 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.2.1 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.2.0 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.11 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.10 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.9 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.8 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.7 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.6 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.5 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.4 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.3 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.2 lib/vagrant-skytap/action/mixin_machine_index.rb
vagrant-skytap-0.1.1a lib/vagrant-skytap/action/mixin_machine_index.rb