class RbVmomi::VIM::EsxcliCommand
Attributes
cli_info[R]
ns[R]
type_info[R]
Public Class Methods
new(ns, type_info)
click to toggle source
# File lib/rbvmomi/vim/HostSystem.rb, line 149 def initialize ns, type_info @ns = ns @type_info = type_info @cached_cli_info = nil end
Public Instance Methods
call(args={})
click to toggle source
# File lib/rbvmomi/vim/HostSystem.rb, line 163 def call args={} if @ns.host.direct? @ns.obj._call @type_info.wsdlName, args else real_args = Set.new(type_info.paramTypeInfo.map(&:name)) args = args.reject { |k,v| !real_args.member?(k.to_s) } @ns.host.mme.execute(@ns.obj._ref, "#{@ns.type_name}.#{@type_info.name}", args) end end
name()
click to toggle source
# File lib/rbvmomi/vim/HostSystem.rb, line 155 def name @type_info.name end