Sha256: eee61709fc8960f90c462be5c9fa181a19bcffc8070752678e9ca7d5d5967bcb

Contents?: true

Size: 394 Bytes

Versions: 414

Compression:

Stored size: 394 Bytes

Contents

require 'puppet/util/feature'

# See if we have rack available, an HTTP Application Stack
# Explicitly depend on rack library version >= 1.0.0
Puppet.features.add(:rack) do
  require 'rack'

  if ! (defined?(::Rack) and defined?(::Rack.release))
    false
  else
    major_version = ::Rack.release.split('.')[0].to_i
    if major_version >= 1
      true
    else
      false
    end
  end
end

Version data entries

414 entries across 414 versions & 4 rubygems

Version Path
puppet-5.5.17-x86-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.17 lib/puppet/feature/rack.rb
puppet-5.5.17-x64-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.17-universal-darwin lib/puppet/feature/rack.rb
puppet-5.5.16 lib/puppet/feature/rack.rb
puppet-5.5.16-x86-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.16-x64-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.16-universal-darwin lib/puppet/feature/rack.rb
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/feature/rack.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/feature/rack.rb
puppet-5.5.14 lib/puppet/feature/rack.rb
puppet-5.5.14-x86-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.14-x64-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.14-universal-darwin lib/puppet/feature/rack.rb
puppet-5.5.13 lib/puppet/feature/rack.rb
puppet-5.5.13-x86-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.13-x64-mingw32 lib/puppet/feature/rack.rb
puppet-5.5.13-universal-darwin lib/puppet/feature/rack.rb
puppet-5.5.12 lib/puppet/feature/rack.rb
puppet-5.5.12-x86-mingw32 lib/puppet/feature/rack.rb