diff options
author | Jesse Campbell <hikeit@gmail.com> | 2013-03-11 15:23:17 -0400 |
---|---|---|
committer | Jesse Campbell <hikeit@gmail.com> | 2013-03-11 15:23:17 -0400 |
commit | 106069617788c0235e76ef470862c752cb25fec1 (patch) | |
tree | 9ee72678f75adcc235aea4e7eb00e27c27d09eb8 /lib/chef/provider/remote_file.rb | |
parent | d464608553c773154f0b586cda8d814c642ea1d1 (diff) | |
download | chef-106069617788c0235e76ef470862c752cb25fec1.tar.gz |
use newer style for calling class methods
Diffstat (limited to 'lib/chef/provider/remote_file.rb')
-rw-r--r-- | lib/chef/provider/remote_file.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/remote_file.rb b/lib/chef/provider/remote_file.rb index 805c1f909e..bff38e4949 100644 --- a/lib/chef/provider/remote_file.rb +++ b/lib/chef/provider/remote_file.rb @@ -138,14 +138,14 @@ class Chef end if URI::HTTP === uri #HTTP or HTTPS - raw_file, mtime, etag = HTTP::fetch(uri, if_modified_since, if_none_match) + raw_file, mtime, etag = RemoteFile::HTTP.fetch(uri, if_modified_since, if_none_match) elsif URI::FTP === uri #FTP - raw_file, mtime = FTP::fetch(uri, @new_resource.ftp_active_mode, if_modified_since) + raw_file, mtime = RemoteFile::FTP.fetch(uri, @new_resource.ftp_active_mode, if_modified_since) etag = nil elsif uri.scheme == "file" #local/network file - raw_file, mtime = LocalFile::fetch(uri, if_modified_since) + raw_file, mtime = RemoteFile::LocalFile.fetch(uri, if_modified_since) etag = nil else raise ArgumentError, "Invalid uri. Only http(s), ftp, and file are currently supported" |