Sha256: 77a4dadd34d2b8d49548bf4ee24879c847b2561336a83298267a1cd50614bf11

Contents?: true

Size: 281 Bytes

Versions: 9

Compression:

Stored size: 281 Bytes

Contents

def windows?
  !!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
end

def unix?
  !windows?
end

def os_x?
  !!(RUBY_PLATFORM =~ /darwin/)
end

def solaris?
  !!(RUBY_PLATFORM =~ /solaris/)
end

def freebsd?
  !!(RUBY_PLATFORM =~ /freebsd/)
end

DEV_NULL = windows? ? "NUL" : "/dev/null"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ohai-8.26.1 spec/support/platform_helpers.rb
ohai-8.26.0 spec/support/platform_helpers.rb
ohai-8.25.1 spec/support/platform_helpers.rb
ohai-8.25.0 spec/support/platform_helpers.rb
ohai-8.24.1 spec/support/platform_helpers.rb
ohai-8.24.0 spec/support/platform_helpers.rb
ohai-8.23.0 spec/support/platform_helpers.rb
ohai-8.22.1 spec/support/platform_helpers.rb
ohai-8.22.0 spec/support/platform_helpers.rb