Module: Train::Extras::DetectEsx

Included in:
OSCommon
Defined in:
lib/train/extras/os_detect_esx.rb

Instance Method Summary collapse

Instance Method Details

#detect_esxObject



13
14
15
16
17
18
19
20
# File 'lib/train/extras/os_detect_esx.rb', line 13

def detect_esx
  if uname_s.downcase.chomp == 'vmkernel'
    @platform[:family] = 'esx'
    @platform[:name] = uname_s.lines[0].chomp
    @platform[:release] = uname_r.lines[0].chomp
    true
  end
end