Sha256: 1286a010b4dabccf7f6e76aa26c171453bd8c4f5fdba3eca84841226e1856147

Contents?: true

Size: 286 Bytes

Versions: 106

Compression:

Stored size: 286 Bytes

Contents

class Hiera
  module Puppet_logger
    class << self
      def suitable?
        defined?(::Puppet) == "constant"
      end

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

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

Version data entries

106 entries across 106 versions & 2 rubygems

Version Path
hiera-3.12.0 lib/hiera/puppet_logger.rb
hiera-3.11.0 lib/hiera/puppet_logger.rb
hiera-3.10.0 lib/hiera/puppet_logger.rb
hiera-3.9.0 lib/hiera/puppet_logger.rb
hiera-3.8.0 lib/hiera/puppet_logger.rb
hiera-3.7.0 lib/hiera/puppet_logger.rb
hiera-3.6.0 lib/hiera/puppet_logger.rb
hiera-3.4.6 lib/hiera/puppet_logger.rb
hiera-3.5.0 lib/hiera/puppet_logger.rb
bolt-0.24.0 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.23.0 vendored/hiera/lib/hiera/puppet_logger.rb
hiera-3.4.5 lib/hiera/puppet_logger.rb
bolt-0.22.0 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.21.8 vendored/hiera/lib/hiera/puppet_logger.rb
hiera-3.4.4 lib/hiera/puppet_logger.rb
bolt-0.21.7 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.21.6 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.21.5 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.21.4 vendored/hiera/lib/hiera/puppet_logger.rb
bolt-0.21.3 vendored/hiera/lib/hiera/puppet_logger.rb