Class: OS::Underlying
- Inherits:
-
Object
- Object
- OS::Underlying
- Defined in:
- lib/os.rb
Class Method Summary collapse
Class Method Details
.docker? ⇒ Boolean
186 187 188 |
# File 'lib/os.rb', line 186 def self.docker? system('grep -q docker /proc/self/cgroup') if OS.linux? end |
.linux? ⇒ Boolean
182 183 184 |
# File 'lib/os.rb', line 182 def self.linux? OS.host_os =~ /linux/ ? true : false end |
.windows? ⇒ Boolean
178 179 180 |
# File 'lib/os.rb', line 178 def self.windows? ENV['OS'] == 'Windows_NT' end |