Sha256: e8da34e2053030e04bad599968a34d06c0dc91f07734d707855821b105813f85

Contents?: true

Size: 392 Bytes

Versions: 405

Compression:

Stored size: 392 Bytes

Contents

# Logs a message on the server at level `warning`.
Puppet::Functions.create_function(:warning, Puppet::Functions::InternalFunction) do
  # @param values The values to log.
  # @return [Undef]
  dispatch :warning do
    scope_param
    repeated_param 'Any', :values
    return_type 'Undef'
  end

  def warning(scope, *values)
    Puppet::Util::Log.log_func(scope, :warning, values)
  end
end

Version data entries

405 entries across 405 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/functions/warning.rb
puppet-7.34.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-7.34.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-7.34.0-universal-darwin lib/puppet/functions/warning.rb
puppet-7.33.0 lib/puppet/functions/warning.rb
puppet-7.33.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-7.33.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-7.33.0-universal-darwin lib/puppet/functions/warning.rb
puppet-7.32.1 lib/puppet/functions/warning.rb
puppet-7.32.1-x86-mingw32 lib/puppet/functions/warning.rb
puppet-7.32.1-x64-mingw32 lib/puppet/functions/warning.rb
puppet-7.32.1-universal-darwin lib/puppet/functions/warning.rb
puppet-7.31.0 lib/puppet/functions/warning.rb
puppet-7.31.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-7.31.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-7.31.0-universal-darwin lib/puppet/functions/warning.rb
puppet-7.30.0 lib/puppet/functions/warning.rb
puppet-7.30.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-7.30.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-7.30.0-universal-darwin lib/puppet/functions/warning.rb