class OS::Underlying
Public Class Methods
bsd?()
click to toggle source
# File lib/os.rb, line 174 def self.bsd? OS.osx? end
docker?()
click to toggle source
# File lib/os.rb, line 186 def self.docker? system('grep -q docker /proc/self/cgroup') if OS.linux? end
linux?()
click to toggle source
# File lib/os.rb, line 182 def self.linux? OS.host_os =~ /linux/ ? true : false end
windows?()
click to toggle source
# File lib/os.rb, line 178 def self.windows? ENV['OS'] == 'Windows_NT' end