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.18.2 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.3.1 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.3.0 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.24 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.18.1 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.23 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.22 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.21 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.20 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.19 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.18 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.17 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.16 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.15 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.14 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.13 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.12 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.11 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.10 lib/metadata/MIQExtract/test/extractTest.rb
manageiq-smartstate-0.2.9 lib/metadata/MIQExtract/test/extractTest.rb