Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chocolatey-cookbook
Commits
62968661
Commit
62968661
authored
Jan 07, 2016
by
Matt Wrock
Browse files
fixes #73 allowing chocolatey to install on older chef clients
parent
136e5204
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
62968661
# Changelog for Chocolatey cookbook
### v0.6.2 (2016-01-07)
*
Fix Chocolatey detection on chef clients older than 12.4.0
### v0.6.1 (2015-11-24)
*
Fix LocalJumpError on existing chocolatey package
...
...
libraries/helpers.rb
View file @
62968661
module
Chocolatey
module
Helpers
# include the PowershellOut module from the windows cookbook
# in case we are running an older chef client
include
Chef
::
Mixin
::
PowershellOut
# Get the ChocolateyInstall directory from the environment.
def
chocolatey_install
ENV
.
fetch
(
'ChocolateyInstall'
)
{
|
env_var
|
machine_env_var
(
env_var
)
}
...
...
metadata.rb
View file @
62968661
...
...
@@ -4,7 +4,7 @@ maintainer_email 'guilhem.lettron@youscribe.com'
license
'Apache 2.0'
description
'Install chocolatey and packages on Windows'
long_description
'Installs the Chocolatey package manager for Windows and provides a Chef resource for installing nuget packages from https://chocolatey.org/'
version
'0.6.
1
'
version
'0.6.
2
'
source_url
'https://github.com/chocolatey/chocolatey-cookbook'
if
defined?
(
:source_url
)
issues_url
'https://github.com/chocolatey/chocolatey-cookbook/issues'
if
defined?
(
:issues_url
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment