summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/windows.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-15 07:01:47 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-15 07:04:22 -0700
commitdeb1285c90f85380d949a70aca14df8607b31939 (patch)
tree370e1ae4989a833fde99e3293cf7cb1c0c16cfd2 /lib/chef/provider/package/windows.rb
parent38a38ba43aa68e05c7316649cb1ac3079e595e2a (diff)
downloadchef-deb1285c90f85380d949a70aca14df8607b31939.tar.gz
download_file_missing? -> downloadable_file_missing?
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r--lib/chef/provider/package/windows.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb
index 4cb550407c..7ff0b71807 100644
--- a/lib/chef/provider/package/windows.rb
+++ b/lib/chef/provider/package/windows.rb
@@ -41,7 +41,7 @@ class Chef
# load_current_resource is run in Chef::Provider#run_action when not in whyrun_mode?
def load_current_resource
@current_resource = Chef::Resource::WindowsPackage.new(@new_resource.name)
- if download_file_missing?
+ if downloadable_file_missing?
Chef::Log.debug("We do not know the version of #{new_resource.source} because the file is not downloaded")
current_resource.version(:unknown.to_s)
else
@@ -108,7 +108,7 @@ class Chef
private
- def download_file_missing?
+ def downloadable_file_missing?
uri_scheme?(new_resource.source) && !::File.exists?(source_location)
end