Module: OS
- Defined in:
- lib/host-manager.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
21 22 23 |
# File 'lib/host-manager.rb', line 21 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
13 14 15 |
# File 'lib/host-manager.rb', line 13 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.windows? ⇒ Boolean
9 10 11 |
# File 'lib/host-manager.rb', line 9 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |