diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-13 07:24:09 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-13 07:24:09 +0000 |
commit | 26b32b953d8e097785b38aa90e5e4bff6ae9247e (patch) | |
tree | a309013958508aa3db2db9db28e953832ce78905 /lib | |
parent | e936fccc16c88d6060a6cc7324bd4bf223cb8c33 (diff) | |
download | puppet-26b32b953d8e097785b38aa90e5e4bff6ae9247e.tar.gz puppet-26b32b953d8e097785b38aa90e5e4bff6ae9247e.tar.xz puppet-26b32b953d8e097785b38aa90e5e4bff6ae9247e.zip |
adding svn keyword to notify type and reindenting
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1872 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/notify.rb | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/lib/puppet/type/notify.rb b/lib/puppet/type/notify.rb index 4525feb17..925cb6b1f 100644 --- a/lib/puppet/type/notify.rb +++ b/lib/puppet/type/notify.rb @@ -3,42 +3,43 @@ # module Puppet - newtype(:notify) do + newtype(:notify) do @doc = "Sends an arbitrary message to the puppetd run-time log." newstate(:message) do - desc "The message to be sent to the log." - def sync - case @parent["withpath"] - when :true: + desc "The message to be sent to the log." + def sync + case @parent["withpath"] + when :true: log(self.should) - else + else Puppet.send(@parent[:loglevel], self.should) - end - return - end - - def retrieve - return - end - - def insync? - false - end - + end + return + end + + def retrieve + return + end + + def insync? + false + end end - + newparam(:withpath) do - desc "Whether to not to show the full object path. Sends the message at the current loglevel." - defaultto :true - newvalues(:true, :false) + desc "Whether to not to show the full object path. Sends the + message at the current loglevel." + defaultto :true + + newvalues(:true, :false) end - + newparam(:name) do - desc "An arbitrary tag for your own reference; the name of the message." - isnamevar + desc "An arbitrary tag for your own reference; the name of the message." + isnamevar + end end - end end -# $Id:$
\ No newline at end of file +# $Id:$ |