class U3d::IvyPlaybackEngineUtils
Public Class Methods
list_module_configs(playbackengine_parent_path)
click to toggle source
# File lib/u3d/installation.rb, line 109 def self.list_module_configs(playbackengine_parent_path) Dir.glob("#{playbackengine_parent_path}/PlaybackEngines/*/ivy.xml") end
module_name(config_path)
click to toggle source
# File lib/u3d/installation.rb, line 121 def self.module_name(config_path) node_value(config_path, 'ivy-module/info/@module') end
node_value(config_path, node_name)
click to toggle source
# File lib/u3d/installation.rb, line 113 def self.node_value(config_path, node_name) require 'rexml/document' UI.verbose("reading #{config_path}") raise "File not found at #{config_path}" unless File.exist? config_path doc = REXML::Document.new(File.read(config_path)) REXML::XPath.first(doc, node_name).value end
unity_version(config_path)
click to toggle source
# File lib/u3d/installation.rb, line 125 def self.unity_version(config_path) node_value(config_path, 'ivy-module/info/@e:unityVersion') end