diff options
author | Jason Barnett <jason.w.barnett@gmail.com> | 2018-03-05 10:45:40 -0500 |
---|---|---|
committer | Jason Barnett <jason.w.barnett@gmail.com> | 2018-03-07 08:00:08 -0500 |
commit | b48e7e0f955c961e51e2a036157348c628ba4f44 (patch) | |
tree | 09b8eb2bbe7c95817056af228f996f2ab7543f1f | |
parent | 598be5d64113a7fbc544e73df1246a68996e989a (diff) | |
download | chef-b48e7e0f955c961e51e2a036157348c628ba4f44.tar.gz |
Remove old way of being and depend on ProviderResolver
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the
best of my knowledge, is covered under an appropriate open
source license and I have the right under that license to
submit that work with modifications, whether created in whole
or in part by me, under the same open source license (unless
I am permitted to submit under a different license), as
Indicated in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including
all personal information I submit with it, including my
sign-off) is maintained indefinitely and may be redistributed
consistent with this project or the open source license(s)
involved.
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
-rw-r--r-- | lib/chef/resource/remote_file.rb | 1 | ||||
-rw-r--r-- | spec/unit/resource/remote_file_spec.rb | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb index d2c2622524..a320fd8b47 100644 --- a/lib/chef/resource/remote_file.rb +++ b/lib/chef/resource/remote_file.rb @@ -37,7 +37,6 @@ class Chef @use_last_modified = true @ftp_active_mode = false @headers = {} - @provider = Chef::Provider::RemoteFile end # source can take any of the following as arguments diff --git a/spec/unit/resource/remote_file_spec.rb b/spec/unit/resource/remote_file_spec.rb index 3e9ba1904c..691c55219c 100644 --- a/spec/unit/resource/remote_file_spec.rb +++ b/spec/unit/resource/remote_file_spec.rb @@ -31,13 +31,11 @@ describe Chef::Resource::RemoteFile do it "says its provider is RemoteFile when the source is an absolute URI" do resource.source("http://www.google.com/robots.txt") - expect(resource.provider).to eq(Chef::Provider::RemoteFile) expect(resource.provider_for_action(:create)).to be_kind_of(Chef::Provider::RemoteFile) end it "says its provider is RemoteFile when the source is a network share" do resource.source("\\\\fakey\\fakerton\\fake.txt") - expect(resource.provider).to eq(Chef::Provider::RemoteFile) expect(resource.provider_for_action(:create)).to be_kind_of(Chef::Provider::RemoteFile) end |