diff options
author | John Keiser <john@johnkeiser.com> | 2015-12-11 13:19:58 -0800 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-12-15 11:16:20 -0800 |
commit | b743fcdbd172862386d172b42bbbc31cfe2f4239 (patch) | |
tree | aeb3a60c86bbd98c5502b86483848a5cc5122fc3 /lib/chef/provider/package/windows.rb | |
parent | 44494c91587ff0313d328d9c4ec016e6fcf5f830 (diff) | |
download | chef-b743fcdbd172862386d172b42bbbc31cfe2f4239.tar.gz |
Use properties in package resourcesjk/package-properties
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r-- | lib/chef/provider/package/windows.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index ad2a855f2e..b4391774ca 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -73,7 +73,7 @@ class Chef @new_resource.installer_type elsif source_location.nil? inferred_registry_type - else + else basename = ::File.basename(source_location) file_extension = basename.split(".").last.downcase @@ -149,7 +149,7 @@ class Chef # @return [Array] current_version(s) as an array # this package provider does not support package arrays - # However, There may be multiple versions for a single + # However, There may be multiple versions for a single # package so the first element may be a nested array def current_version_array [ current_resource.version ] |