Anons79 Mini Shell

Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/log.rb

require 'puppet/reports'

Puppet::Reports.register_report(:log) do
  desc "Send all received logs to the local log destinations.  Usually
    the log destination is syslog."

  def process
    self.logs.each do |log|
      log.source = "//#{self.host}/#{log.source}"
      Puppet::Util::Log.newmessage(log)
    end
  end
end


Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]