Sha256: d2a8011bae7b1f9d2655a96e4230b698b73229e1c6914b1d01631c993870e9ad

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

class Hiera
  module Puppet_logger
    class << self
      def suitable?
        Kernel.const_defined?(:Puppet)
      end

      def warn(msg)
        Puppet.notice("hiera(): #{msg}")
      end

      def debug(msg)
        Puppet.debug("hiera(): #{msg}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hiera-1.2.0 lib/hiera/puppet_logger.rb
hiera-1.2.0.rc3 lib/hiera/puppet_logger.rb
hiera-1.2.0.rc2 lib/hiera/puppet_logger.rb