]>
git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/base_installation/lib/puppet/type/notify_refresh.rb
35f0cda43ee1659b41594c3417aff087209f4e14
2 # Simple module for logging messages on the client-side
6 Type
.newtype(:notify_refresh) do
7 @doc = "Sends an arbitrary message to the agent run-time log."
11 newproperty(:message, :idempotent => false) do
12 desc
"The message to be sent to the log."
13 def sync(refreshing
= false)
14 if refreshing
|| !
@resource.refreshonly
?
15 Puppet
.send(@resource[:loglevel], self.should
)
28 defaultto
{ @resource[:name] }
32 self.property(:message).sync(true)
36 desc
"An arbitrary tag for your own reference; the name of the message."
40 newparam(:refreshonly, :boolean => true, :parent => Puppet
::Parameter::Boolean) do