Sha256: 3feedaeb04997074c4e253809fa65c20b84ad103a41174d3c65e678316e94fa3

Contents?: true

Size: 423 Bytes

Versions: 32

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

# 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

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/functions/warning.rb
puppet-8.10.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-8.10.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-8.10.0-universal-darwin lib/puppet/functions/warning.rb
puppet-8.9.0 lib/puppet/functions/warning.rb
puppet-8.9.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-8.9.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-8.9.0-universal-darwin lib/puppet/functions/warning.rb
puppet-8.8.1 lib/puppet/functions/warning.rb
puppet-8.8.1-x86-mingw32 lib/puppet/functions/warning.rb
puppet-8.8.1-x64-mingw32 lib/puppet/functions/warning.rb
puppet-8.8.1-universal-darwin lib/puppet/functions/warning.rb
puppet-8.7.0 lib/puppet/functions/warning.rb
puppet-8.7.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-8.7.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-8.7.0-universal-darwin lib/puppet/functions/warning.rb
puppet-8.6.0 lib/puppet/functions/warning.rb
puppet-8.6.0-x86-mingw32 lib/puppet/functions/warning.rb
puppet-8.6.0-x64-mingw32 lib/puppet/functions/warning.rb
puppet-8.6.0-universal-darwin lib/puppet/functions/warning.rb