summaryrefslogtreecommitdiff
path: root/lib/chef/file_content_management/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/file_content_management/tempfile.rb')
-rw-r--r--lib/chef/file_content_management/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/file_content_management/tempfile.rb b/lib/chef/file_content_management/tempfile.rb
index c3bf07d92b..4aa8add8e6 100644
--- a/lib/chef/file_content_management/tempfile.rb
+++ b/lib/chef/file_content_management/tempfile.rb
@@ -67,7 +67,7 @@ class Chef
basename = ::File.basename(@new_resource.path, tempfile_extension)
# the leading "[.]chef-" here should be considered a public API and should not be changed
basename.insert 0, "chef-"
- basename.insert 0, "." unless Chef::Platform.windows? # dotfile if we're not on windows
+ basename.insert 0, "." unless ChefHelpers.windows? # dotfile if we're not on windows
basename.scrub
end