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
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/lib/facter/util/config.rb
facter-1.6.18 lib/facter/util/config.rb
facter-1.6.18.rc1 lib/facter/util/config.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/lib/facter/util/config.rb
facter-1.6.17 lib/facter/util/config.rb
facter-1.6.17.rc1 lib/facter/util/config.rb
facter-1.6.16 lib/facter/util/config.rb
facter-1.6.15 lib/facter/util/config.rb
facter-1.6.15.rc1 lib/facter/util/config.rb
facter-1.6.14 lib/facter/util/config.rb
facter-1.6.14.rc1 lib/facter/util/config.rb
facter-1.6.13 lib/facter/util/config.rb
facter-1.6.13.rc1 lib/facter/util/config.rb
facter-1.6.12 lib/facter/util/config.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/facter-1.6.11/lib/facter/util/config.rb
facter-1.6.12.rc2 lib/facter/util/config.rb
facter-1.6.12.rc1 lib/facter/util/config.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/facter-1.6.11/lib/facter/util/config.rb
facter-1.6.11 lib/facter/util/config.rb
facter-1.6.10 lib/facter/util/config.rb