diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-14 20:36:33 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-15 08:16:07 -0800 |
commit | 58041e245a34c3773285cd27ff74cea4e838e520 (patch) | |
tree | f9a200a797db880e87ad52cf15d4e0216b3b5a66 /lib/chef/provider/log.rb | |
parent | 1c487ab5977446746f9b389e429707ec8142b063 (diff) | |
download | chef-58041e245a34c3773285cd27ff74cea4e838e520.tar.gz |
Modernize the log resource
General cleanup
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/log.rb')
-rw-r--r-- | lib/chef/provider/log.rb | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lib/chef/provider/log.rb b/lib/chef/provider/log.rb index fbbc053b5b..e3f07b9a16 100644 --- a/lib/chef/provider/log.rb +++ b/lib/chef/provider/log.rb @@ -17,37 +17,28 @@ # class Chef - class Provider - class Log - - # Chef log provider, allows logging to chef's logs from recipes + # Chef log provider, allows logging to chef's logs + # + # @author Cary Penniman <cary@rightscale.com> + # @author Tyler Cloke <tyler@chef.io> class ChefLog < Chef::Provider - - provides :log - # No concept of a 'current' resource for logs, this is a no-op # - # === Return - # true:: Always return true + # @return [true] Always returns true def load_current_resource true end # Write the log to Chef's log # - # === Return - # true:: Always return true + # @return [true] Always returns true def action_write Chef::Log.send(new_resource.level, new_resource.message) new_resource.updated_by_last_action(true) if Chef::Config[:count_log_resource_updates] end - end - end - end - end |