diff options
Diffstat (limited to 'lib/facter/util/puppet_settings.rb')
-rw-r--r-- | lib/facter/util/puppet_settings.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/facter/util/puppet_settings.rb b/lib/facter/util/puppet_settings.rb new file mode 100644 index 0000000..c8c8363 --- /dev/null +++ b/lib/facter/util/puppet_settings.rb @@ -0,0 +1,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 |