Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-5897) Add allow_self_service to chocolateysource #137

Merged
merged 1 commit into from
Jan 29, 2019
Merged

(MODULES-5897) Add allow_self_service to chocolateysource #137

merged 1 commit into from
Jan 29, 2019

Conversation

michaeltlombardi
Copy link

Prior to this commit the chocolateysource type and provider did
not support the option to specify the --allow-self-service flag
when managing a source. This option causes Chocolatey to mark the
source as being usable with the C4B Self-Service feature as of
C4B v1.10.0. It requires Chocolatey 0.10.4+ to set this option.

This commit adds the allow_self_service property to the type and
provider of chocolateysource to ensure that this property
can be configured on versions which support it.

This commit also updates the README documentation and CHANGELOG,
as well as providing new unit and acceptance tests and updating
any unit and acceptance tests which should include the new
setting.

@@ -189,6 +197,10 @@ def flush
args << '--bypass-proxy' if resource[:bypass_proxy].to_s == 'true'
end

if choco_gem_version >= Gem::Version.new(MINIMUM_SUPPORTED_CHOCO_VERSION_ALLOW_SELF_SERVICE)
args << '--allow-self-service' if resource[:allow_self_service].to_s == 'true'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use args << '--allow-self-service' if resource[:allow_self_service] == :true here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

Prior to this commit the `chocolateysource` type and provider did
not support the option to specify the `--allow-self-service` flag
when managing a source. This option causes Chocolatey to mark the
source as being usable with the C4B Self-Service feature as of
C4B v1.10.0. It requires Chocolatey 0.10.4+ to set this option.

This commit adds the `allow_self_service` property to the type and
provider of `chocolateysource` to ensure that this property
can be configured on versions which support it.

This commit also updates the README documentation and CHANGELOG,
as well as providing new unit and acceptance tests and updating
any unit and acceptance tests which should include the new
setting.
Copy link

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending green adhoc run....SHIP IT 🚢

@jpogran jpogran merged commit 142a445 into puppetlabs:master Jan 29, 2019
@michaeltlombardi michaeltlombardi deleted the ticket/master/modules-5897-self-service branch August 16, 2019 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants