Sha256: 60de7ef9cadd887c069fba87752b15bbade117c5c68a6eb31bdcdd7c2e2a792b

Contents?: true

Size: 191 Bytes

Versions: 25

Compression:

Stored size: 191 Bytes

Contents

require 'rbconfig'

# A module to return config related data
#
module Facter::Util::Config
  def self.is_windows?
    RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos|mingw|cygwin/i
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
facter-1.6.9 lib/facter/util/config.rb
facter-1.6.8 lib/facter/util/config.rb
facter-1.6.7 lib/facter/util/config.rb
facter-1.6.6 lib/facter/util/config.rb
facter-1.6.5 lib/facter/util/config.rb