Module: VMonkey

Defined in:
lib/vmonkey.rb,
lib/vmonkey.rb

Class Method Summary collapse

Class Method Details

.connect(opts = nil) ⇒ Object



9
10
11
# File 'lib/vmonkey.rb', line 9

def self.connect(opts = nil)
  RbVmomi::VIM.monkey_connect(opts)
end

.default_optsObject



13
14
15
# File 'lib/vmonkey.rb', line 13

def self.default_opts
  RbVmomi::VIM.default_opts
end

.string_basename(s) ⇒ Object



24
25
26
# File 'lib/vmonkey.rb', line 24

def self.string_basename(s)
  p = s.split('/').last
end

.string_parent(s) ⇒ Object



19
20
21
22
# File 'lib/vmonkey.rb', line 19

def self.string_parent(s)
  p = s.split('/')[0...-1].join('/')
  p == '' ? '/' : p
end