Module: OS
- Defined in:
- lib/woodstove/packagemanager.rb
Overview
Source bit.ly/29GrULj
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
239 240 241 |
# File 'lib/woodstove/packagemanager.rb', line 239 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
231 232 233 |
# File 'lib/woodstove/packagemanager.rb', line 231 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.unix? ⇒ Boolean
235 236 237 |
# File 'lib/woodstove/packagemanager.rb', line 235 def OS.unix? !OS.windows? end |
.windows? ⇒ Boolean
227 228 229 |
# File 'lib/woodstove/packagemanager.rb', line 227 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |