summaryrefslogtreecommitdiff
path: root/lib/chef/file_content_management
diff options
context:
space:
mode:
authorAnthony Neto <aneto@denirostaff.com>2016-01-11 18:02:04 -0800
committerThom May <thom@chef.io>2016-02-16 18:23:20 +0000
commit20e5d3309e075feefbe01d67b408f207786bd3a5 (patch)
tree1dd4a745f643ecbd6afafc02a9ac916b104897bb /lib/chef/file_content_management
parent61906bae0a660759ed59339bb8ae49521c25c636 (diff)
downloadchef-20e5d3309e075feefbe01d67b408f207786bd3a5.tar.gz
prepending chef to tempfile name
Diffstat (limited to 'lib/chef/file_content_management')
-rw-r--r--lib/chef/file_content_management/tempfile.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/file_content_management/tempfile.rb b/lib/chef/file_content_management/tempfile.rb
index dbe8a30ab4..bba4b34d82 100644
--- a/lib/chef/file_content_management/tempfile.rb
+++ b/lib/chef/file_content_management/tempfile.rb
@@ -64,6 +64,7 @@ class Chef
#
def tempfile_basename
basename = ::File.basename(@new_resource.name)
+ basename.insert 0, "chef-"
basename.insert 0, "." unless Chef::Platform.windows? # dotfile if we're not on windows
basename
end