diff options
author | sersut <serdar@opscode.com> | 2013-05-16 12:32:23 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-05-16 12:32:23 -0700 |
commit | e46f99d074e2d83cdb08831d752f3b161c076a76 (patch) | |
tree | 3e50468e4bf4a236a689d73b2bf097bfded84350 /lib/chef/provider/remote_file/local_file.rb | |
parent | 273d10f2fe8cef115982398858ff34f92a250018 (diff) | |
download | chef-e46f99d074e2d83cdb08831d752f3b161c076a76.tar.gz |
Move file content management logic outside of providers under Chef::FileContentManagement for reusability in the future.
Diffstat (limited to 'lib/chef/provider/remote_file/local_file.rb')
-rw-r--r-- | lib/chef/provider/remote_file/local_file.rb | 2 |
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 69e615ae88..c0f3af2495 100644 --- a/lib/chef/provider/remote_file/local_file.rb +++ b/lib/chef/provider/remote_file/local_file.rb @@ -50,7 +50,7 @@ class Chef Chef::Log.debug("#{new_resource} mtime on #{uri.path} has not been updated, not deploying") nil else - tempfile = Chef::Provider::File::Tempfile.new(new_resource).tempfile + tempfile = Chef::FileContentManagement::Tempfile.new(new_resource).tempfile Chef::Log.debug("#{new_resource} staging #{uri.path} to #{tempfile.path}") FileUtils.cp(uri.path, tempfile.path) tempfile |