Sha256: e398f713c681e7ba59a892e5591b91b0f9e675418d9b983387575c9cf4f1900d

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

module Veewee
  module Provider
    module Virtualbox
      module BoxCommand

        def natinterface
          command="#{@vboxcmd} showvminfo --details --machinereadable '#{self.name}'"
          shell_results=shell_exec("#{command}")

          nic_id=shell_results.stdout.split(/\n/).grep(/^nic/).grep(/nat/)[0].split('=')[0][-1,1]
          return nic_id
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.0.alpha8 lib/veewee/provider/virtualbox/box/helper/natinterface.rb
veewee-0.3.0.alpha7 lib/veewee/provider/virtualbox/box/helper/natinterface.rb
veewee-0.3.0.alpha6 lib/veewee/provider/virtualbox/box/helper/natinterface.rb
veewee-0.3.0.alpha5 lib/veewee/provider/virtualbox/box/helper/natinterface.rb