class OS::Underlying
Public Class Methods
Source
# File lib/os.rb, line 186 def self.docker? system('grep -q docker /proc/self/cgroup') if OS.linux? end
Source
# File lib/os.rb, line 182 def self.linux? OS.host_os =~ /linux/ ? true : false end
# File lib/os.rb, line 186 def self.docker? system('grep -q docker /proc/self/cgroup') if OS.linux? end
# File lib/os.rb, line 182 def self.linux? OS.host_os =~ /linux/ ? true : false end