summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-10-07 17:42:39 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-10-07 17:42:39 -0700
commitc03898cc8df5b10ce24aa414a793940d498c6d26 (patch)
tree98cc1c77bc7a50740cbdcd373c0703587e578716
parent11277424bc7a97117cdb134d40a388c651a3cca7 (diff)
downloadchef-c03898cc8df5b10ce24aa414a793940d498c6d26.tar.gz
Lets log a little earlier, shall we?
-rw-r--r--lib/chef/provider/package.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/package.rb b/lib/chef/provider/package.rb
index 90eaa83cce..a68c2e88f2 100644
--- a/lib/chef/provider/package.rb
+++ b/lib/chef/provider/package.rb
@@ -50,37 +50,37 @@ class Chef
end
if do_package
+ Chef::Log.info("Installing #{@new_resource} version #{install_version} successfully")
status = install_package(@new_resource.package_name, install_version)
if status
@new_resource.updated = true
- Chef::Log.info("Installed #{@new_resource} version #{install_version} successfully")
end
end
end
def action_upgrade
if @current_resource.version != @candidate_version
+ Chef::Log.info("Upgrading #{@new_resource} version from #{@current_resource.version} to #{@candidate_version} successfully")
status = install_package(@new_resource.package_name, @candidate_version)
if status
@new_resource.updated = true
- Chef::Log.info("Upgraded #{@new_resource} version from #{@current_resource.version} to #{@candidate_version} successfully")
end
end
end
def action_remove
if @current_resource.version != nil
+ Chef::Log.info("Removing #{@new_resource} successfully")
remove_package(@new_resource.package_name, @new_resource.version)
@new_resource.updated = true
- Chef::Log.info("Removed #{@new_resource} successfully")
end
end
def action_purge
if @current_resource.version != nil
+ Chef::Log.info("Purging #{@new_resource} successfully")
purge_package(@new_resource.package_name, @new_resource.version)
@new_resource.updated = true
- Chef::Log.info("Purged #{@new_resource} successfully")
end
end