Module: Hiera::Puppet_logger

Defined in:
lib/hiera/puppet_logger.rb

Class Method Summary collapse

Class Method Details

.debug(msg) ⇒ Object


12
13
14
# File 'lib/hiera/puppet_logger.rb', line 12

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

.suitable?Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/hiera/puppet_logger.rb', line 4

def suitable?
  defined?(::Puppet) == "constant"
end

.warn(msg) ⇒ Object


8
9
10
# File 'lib/hiera/puppet_logger.rb', line 8

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