Sha256: 896f27b471e8297cb281dd686d1a6c0fce8fc945d556fcb2b53d3d8731cc2c61

Contents?: true

Size: 471 Bytes

Versions: 5

Compression:

Stored size: 471 Bytes

Contents

require 'active_support/dependencies'
ActiveSupport::Dependencies.unhook!

require 'puppet'
require 'puppet/rails'

ActiveSupport::Dependencies.hook!

if Puppet::PUPPETVERSION.to_i < 3
  Puppet.parse_config
end

$puppet = Puppet.settings.instance_variable_get(:@values) if Rails.env == "test"

# workaround for puppet bug http://projects.reductivelabs.com/issues/3949
if Facter.puppetversion == "0.25.5"
  begin
    require 'RRDtool'
  rescue LoadError
    nil
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/config/initializers/puppet.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/config/initializers/puppet.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/config/initializers/puppet.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/config/initializers/puppet.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/config/initializers/puppet.rb