module OS

Source bit.ly/29GrULj

Public Class Methods

linux?() click to toggle source
# File lib/woodstove/packagemanager.rb, line 239
def OS.linux?
  OS.unix? and not OS.mac?
end
mac?() click to toggle source
# File lib/woodstove/packagemanager.rb, line 231
def OS.mac?
 (/darwin/ =~ RUBY_PLATFORM) != nil
end
unix?() click to toggle source
# File lib/woodstove/packagemanager.rb, line 235
def OS.unix?
  !OS.windows?
end
windows?() click to toggle source
# File lib/woodstove/packagemanager.rb, line 227
def OS.windows?
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end