Module: Pkg::Util::OS

Defined in:
lib/packaging/util/os.rb

Constant Summary collapse

DEVNULL =
windows? ? 'NUL' : '/dev/null'

Class Method Summary collapse

Class Method Details

.windows?Boolean

Returns:

  • (Boolean)


6
7
8
9
10
11
12
13
# File 'lib/packaging/util/os.rb', line 6

def windows?
  case RbConfig::CONFIG['host_os']
  when /mswin|mingw/i
    true
  else
    false
  end
end