summaryrefslogtreecommitdiff
path: root/lib/facter/util/puppet_settings.rb
blob: c8c8363c1479f36d62d6a23ff87abb7ae64b4a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Facter
  module Util
    module PuppetSettings
      class << self
        def with_puppet
          begin
            Module.const_get("Puppet")
          rescue NameError
            nil
          else
            yield
          end
        end
      end
    end
  end
end