Sha256: a0e568f3a477947c0a36ef454bfbe6ed1789561a861ec52fc7f66929c38f0533

Contents?: true

Size: 971 Bytes

Versions: 27

Compression:

Stored size: 971 Bytes

Contents

require 'metadata/MIQExtract/MIQExtract'
require 'MiqVm/MiqVm'

# vmDir = "v:"
vmDir = File.join(ENV.fetch("HOME", '.'), 'VMs')
puts "vmDir = #{vmDir}"

require 'logger'
$log = Logger.new(STDERR)
$log.level = Logger::ERROR

#
# *** Test start
#

# vmCfgFile = File.join(vmDir, "UbuntuDev.vmwarevm/UbuntuDev.vmx")
# vmCfgFile = File.join(vmDir, "gentoo/gentoo.vmx")
# vmCfgFile = File.join(vmDir, "Ken_Linux/Ken_Linux.vmx")
# vmCfgFile = File.join(vmDir, "Metasploit VM/Metasploit VM.vmx")
# vmCfgFile = File.join(vmDir, "KnopDev.vmwarevm/KnopDev.vmx")
vmCfgFile = File.join(vmDir, "Red Hat Linux.vmwarevm/Red Hat Linux.vmx")
# vmCfgFile = File.join(vmDir, "MIQ Server Appliance - Ubuntu MD - small/MIQ Server Appliance - Ubuntu.vmx")
# vmCfgFile = File.join(vmDir, "winxpDev.vmwarevm/winxpDev.vmx")
puts "VM config file: #{vmCfgFile}"

ost = OpenStruct.new
vmCfg = MIQExtract.new(vmCfgFile, ost)
xml = vmCfg.extract(["software"])

xml.write($stdout, 4)
puts

vmCfg.close

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
manageiq-smartstate-0.2.8 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.7 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.6 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.5 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.4 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.3 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.2 lib/metadata/MIQExtract/test/extractTest.rb