summaryrefslogtreecommitdiff
path: root/lib/chef/resource/log.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-01-21 11:25:00 -0800
committerdanielsdeleo <dan@opscode.com>2013-01-21 11:25:00 -0800
commitbfe59224611730b3779348bb94cdd5e75b34107c (patch)
treed59e88c042f79f9dc92824dd56b0c2c63a09bae1 /lib/chef/resource/log.rb
parent30ec971df95264b39e5e403c08b634d4708f5bee (diff)
parent88588ffbe4130e891f88d967bfa6371a4685215b (diff)
downloadchef-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.rb11
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