summaryrefslogtreecommitdiff
path: root/chef/lib
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2011-04-04 21:46:25 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-06 14:16:03 -0700
commit1bffeb207a258bb59f54cc26c23e13afcc6f0821 (patch)
treebe74a61736512ef39b49e150a037eccff2b8b761 /chef/lib
parent1d3ab50c310492d6d5ffb41ff8f152bff9b9f87d (diff)
downloadchef-1bffeb207a258bb59f54cc26c23e13afcc6f0821.tar.gz
Updating template provider log messages
Diffstat (limited to 'chef/lib')
-rw-r--r--chef/lib/chef/provider/template.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/chef/lib/chef/provider/template.rb b/chef/lib/chef/provider/template.rb
index 0ae1b9c45e..b2f3f4899e 100644
--- a/chef/lib/chef/provider/template.rb
+++ b/chef/lib/chef/provider/template.rb
@@ -42,10 +42,10 @@ class Chef
Chef::Log.debug("#{@new_resource} content has not changed.")
set_all_access_controls(@new_resource.path)
else
- Chef::Log.info("Writing updated content for #{@new_resource} to #{@new_resource.path}")
backup
set_all_access_controls(rendered_template.path)
FileUtils.mv(rendered_template.path, @new_resource.path)
+ Chef::Log.info("#{@new_resource} updated content")
@new_resource.updated_by_last_action(true)
end
end
@@ -53,14 +53,13 @@ class Chef
def action_create_if_missing
if ::File.exists?(@new_resource.path)
- Chef::Log.debug("Template #{@new_resource} exists, taking no action.")
+ Chef::Log.debug("#{@new_resource} exists - taking no action")
else
action_create
end
end
def template_location
- Chef::Log.debug("looking for template #{@new_resource.source} in cookbook #{cookbook_name.inspect}")
@template_file_cache_location ||= begin
if @new_resource.local
@new_resource.source