Skip to content

Commit

Permalink
Workaround for 7zip on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Monacelli committed Aug 21, 2016
1 parent f05cfe7 commit b3dc0f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
default['ark']['prefix_home'] = '/usr/local'
default['ark']['tar'] = case node['platform_family']
when 'windows'
"\"#{::Win32::Registry::HKEY_LOCAL_MACHINE.open(
'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe', ::Win32::Registry::KEY_READ).read_s('Path')}\\7z.exe\""
'"C:\\Program Files\\7-Zip\\7z.exe"'
when 'mac_os_x', 'freebsd'
'/usr/bin/tar'
when 'smartos'
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Provides a custom resource for installing runtime artifacts in a predictable fashion'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.2.0'
version '1.2.1'

recipe 'ark::default', 'Installs packages needed by the custom resource'

Expand Down

0 comments on commit b3dc0f1

Please sign in to comment.