Class: RbVmomi::VIM
- Inherits:
-
Object
show all
- Includes:
- RVC::Connection
- Defined in:
- lib/rvc/modules/vsan.rb,
lib/rvc/modules/spbm.rb,
lib/rvc/vim.rb
Instance Attribute Summary
#rvc_arc, #rvc_parent
Instance Method Summary
collapse
#_connection, included
included, #ls_text, #rvc_children, #rvc_link, #rvc_path, #rvc_path_str, #rvc_relative_path, #rvc_relative_path_str, #traverse_one
#field, #fields
#field, #field_properties, #perfmetrics
Constructor Details
#initialize(opts) ⇒ VIM
Returns a new instance of VIM.
2439
2440
2441
|
# File 'lib/rvc/modules/vsan.rb', line 2439
def initialize opts
super opts
end
|
Instance Method Details
#children ⇒ Object
30
31
32
|
# File 'lib/rvc/vim.rb', line 30
def children
rootFolder.children
end
|
#display_info ⇒ Object
34
35
36
|
# File 'lib/rvc/vim.rb', line 34
def display_info
puts serviceContent.about.fullName
end
|
#pbm ⇒ Object
28
29
30
|
# File 'lib/rvc/modules/spbm.rb', line 28
def pbm
@pbm ||= PBM.connect self, :insecure => true
end
|
#pbm=(x) ⇒ Object
32
33
34
|
# File 'lib/rvc/modules/spbm.rb', line 32
def pbm= x
@pbm = nil
end
|
#spawn_additional_connection ⇒ Object
2443
2444
2445
2446
2447
2448
|
# File 'lib/rvc/modules/vsan.rb', line 2443
def spawn_additional_connection
c1 = RbVmomi::VIM.new(@opts)
c1.cookie = self.cookie
c1.rev = self.rev
c1
end
|