Sha256: db5b0d776c157cf1ac4c26c452ed89597ba9c14bb49b735ab79bd6829f1d9396
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# # Simple module for logging messages on the client-side # module Puppet newtype(:notify) do @doc = "Sends an arbitrary message to the puppetd run-time log." newproperty(:message) do desc "The message to be sent to the log." def sync case @parent["withpath"] when :true: log(self.should) else Puppet.send(@parent[:loglevel], self.should) end return end def retrieve return end def insync? false end defaultto { @parent[:name] } end newparam(:withpath) do desc "Whether to not to show the full object path. Sends the message at the current loglevel." defaultto :false newvalues(:true, :false) end newparam(:name) do desc "An arbitrary tag for your own reference; the name of the message." isnamevar end end end # $Id: notify.rb 2317 2007-03-19 17:42:17Z luke $
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.22.4 | lib/puppet/type/notify.rb |