Module: VimMappingRegistry
- Defined in:
- lib/VMwareWebService/VimMappingRegistry.rb
Constant Summary collapse
- YML_DIR =
File.join(File.dirname(__FILE__), "wsdl41", "methods")
Class Method Summary collapse
Class Method Details
.argInfoMap(cType) ⇒ Object
13 14 15 |
# File 'lib/VMwareWebService/VimMappingRegistry.rb', line 13 def self.argInfoMap(cType) registry[cType] end |
.args(cType) ⇒ Object
17 18 19 |
# File 'lib/VMwareWebService/VimMappingRegistry.rb', line 17 def self.args(cType) registry[cType] && registry[cType].keys end |
.registry ⇒ Object
6 7 8 9 10 11 |
# File 'lib/VMwareWebService/VimMappingRegistry.rb', line 6 def self.registry @registry ||= Hash.new do |h, k| file = File.join(YML_DIR, "#{k}.yml") h[k] = File.exist?(file) ? YAML.load_file(file) : nil end end |