diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-21 11:25:00 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-21 11:25:00 -0800 |
commit | bfe59224611730b3779348bb94cdd5e75b34107c (patch) | |
tree | d59e88c042f79f9dc92824dd56b0c2c63a09bae1 /lib/chef/resource/log.rb | |
parent | 30ec971df95264b39e5e403c08b634d4708f5bee (diff) | |
parent | 88588ffbe4130e891f88d967bfa6371a4685215b (diff) | |
download | chef-bfe59224611730b3779348bb94cdd5e75b34107c.tar.gz |
Merge branch 'integrate-chef-10-18-0'
Diffstat (limited to 'lib/chef/resource/log.rb')
-rw-r--r-- | lib/chef/resource/log.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/chef/resource/log.rb b/lib/chef/resource/log.rb index d1b6b5af0b..30a5bb93c6 100644 --- a/lib/chef/resource/log.rb +++ b/lib/chef/resource/log.rb @@ -20,7 +20,7 @@ class Chef class Resource class Log < Chef::Resource - identity_attr :name + identity_attr :message # Sends a string from a recipe to a log provider # @@ -47,6 +47,15 @@ class Chef @resource_name = :log @level = :info @action = :write + @message = name + end + + def message(arg=nil) + set_or_return( + :message, + arg, + :kind_of => String + ) end # <Symbol> Log level, one of :debug, :info, :warn, :error or :fatal |