summaryrefslogtreecommitdiff
path: root/lib/chef/provider/remote_file/local_file.rb
diff options
context:
space:
mode:
authorJesse Campbell <hikeit@gmail.com>2013-03-01 21:11:31 -0500
committerJesse Campbell <hikeit@gmail.com>2013-03-01 21:11:31 -0500
commit7d9c7ac2ba438d534e038dcc0d73248f9faa387d (patch)
treea91904d146530114729f08451e36449d9056926f /lib/chef/provider/remote_file/local_file.rb
parenta2faf73b16726fef02dd644437105d05c7700bf1 (diff)
downloadchef-7d9c7ac2ba438d534e038dcc0d73248f9faa387d.tar.gz
switch back to chef::rest
Diffstat (limited to 'lib/chef/provider/remote_file/local_file.rb')
-rw-r--r--lib/chef/provider/remote_file/local_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file/local_file.rb b/lib/chef/provider/remote_file/local_file.rb
index 346867348d..9a07621d14 100644
--- a/lib/chef/provider/remote_file/local_file.rb
+++ b/lib/chef/provider/remote_file/local_file.rb
@@ -31,7 +31,7 @@ class Chef
if mtime && if_modified_since && mtime.to_i <= if_modified_since.to_i
tempfile = nil
else
- tempfile = Tempfile.new(File.basename(uri.path))
+ tempfile = Tempfile.new(::File.basename(uri.path))
Chef::Log.debug("#{@new_resource} staging #{uri.path} to #{tempfile.path}")
FileUtils.cp(uri.path, tempfile.path)
tempfile