Module: Train::Extras::Uname

Included in:
DetectDarwin, DetectLinux
Defined in:
lib/train/extras/uname.rb

Instance Method Summary collapse

Instance Method Details

#uname_mObject



24
25
26
# File 'lib/train/extras/uname.rb', line 24

def uname_m
  @uname_m ||= backend.run_command('uname -m').stdout.chomp
end

#uname_rObject



16
17
18
19
20
21
22
# File 'lib/train/extras/uname.rb', line 16

def uname_r
  @uname_r ||= begin
                 res = backend.run_command('uname -r').stdout
                 res.strip! unless res.nil?
                 res
               end
end

#uname_sObject



12
13
14
# File 'lib/train/extras/uname.rb', line 12

def uname_s
  @uname_s ||= backend.run_command('uname -s').stdout
end