Sha256: 6131f5e50bc158c7b159f66de59528cfabcdd6341917c06fb895fa424444b065
Contents?: true
Size: 405 Bytes
Versions: 27
Compression:
Stored size: 405 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
27 entries across 27 versions & 2 rubygems