diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 14:23:07 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 14:23:07 -0700 |
commit | cdd43e77db271c2accda73f94efa59358b900dfe (patch) | |
tree | 637eca3bbf1b4f18d9a3b7a4996c2545ebff9112 /lib | |
parent | 253e0c0094c6acc2ed83baacbbb2beb88c743a66 (diff) | |
download | chef-cdd43e77db271c2accda73f94efa59358b900dfe.tar.gz |
Updating example recipes and improving log output
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/client.rb | 4 | ||||
-rw-r--r-- | lib/chef/runner.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index ace031fb5e..c8ab31eed7 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -175,7 +175,7 @@ class Chef end if changed - Chef::Log.debug("Storing updated #{cache_file}") + Chef::Log.info("Storing updated #{cache_file} in the cache.") Chef::FileCache.move_to(raw_file.path, cache_file) end end @@ -183,7 +183,7 @@ class Chef Chef::FileCache.list.each do |cache_file| if cache_file.match("cookbooks/.+?/#{segment}") unless file_canonical[cache_file] - Chef::Log.info("Removing #{cache_file}, as it is no longer a valid.") + Chef::Log.info("Removing #{cache_file} from the cache; it is no longer on the server.") Chef::FileCache.delete(cache_file) end end diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index 15347fcfa1..cde844f027 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -68,14 +68,14 @@ class Chef resource.actions.each_key do |action| if resource.actions[action].has_key?(:immediate) resource.actions[action][:immediate].each do |r| - Chef::Log.info("#{resource} sending action #{action} to #{r} (immediate)") + Chef::Log.info("#{resource} sending #{action} action to #{r} (immediate)") build_provider(r).send("action_#{action}") end end if resource.actions[action].has_key?(:delayed) resource.actions[action][:delayed].each do |r| delayed_actions << lambda { - Chef::Log.info("#{resource} sending action #{action} to #{r} (delayed)") + Chef::Log.info("#{resource} sending #{action} action to #{r} (delayed)") build_provider(r).send("action_#{action}") } end |