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

fix chocolatey latest logic #38

Closed
wants to merge 1 commit into from

Conversation

rismoney
Copy link
Contributor

The current chocolatey-update behavior states that if a package
is not installed, then chocolatey returns "nothing to update"

This commit, adjusts the ensure=>latest logic: specifically

Case: Package is not installed
Action: Provider will perform a chocolatey install
Result: the latest package installed

Case: Package is installed but oldIf
Action: Provider will run chocolatey update to the latest version
Result: the latest package installed

Case: Package is already on the latest version
Action: Provider will not do anything.
Result: the latest packaged installed

This also clarified variable name from latest method
packages is really package_ver

@rismoney
Copy link
Contributor Author

#36

@rismoney rismoney force-pushed the fix_latest branch 2 times, most recently from 51d3028 to 9d7ab6e Compare September 11, 2014 20:18
@rismoney
Copy link
Contributor Author

@ferventcoder - while the rspec passes now, i don't think i've got it right. can you take a gander when you get a moment? perhaps your puppet/ruby expertise can shed light on this.

@rismoney rismoney force-pushed the fix_latest branch 2 times, most recently from eed7d7a to e01ad13 Compare September 12, 2014 14:40
@rismoney
Copy link
Contributor Author

think i got it right now. gonna merge soon.

The current chocolatey-update behavior states that if a package
is not installed, then chocolatey returns "nothing to update"

This commit, adjusts the ensure=>latest logic: specifically

Case: Package is not installed
Action: Provider will perform a chocolatey install
Result: the latest package installed

Case: Package is installed but oldIf
Action: Provider will run chocolatey update to the latest version
Result: the latest package installed

Case: Package is already on the latest version
Action: Provider will not do anything.
Result: the latest packaged installed

This also clarified variable name from latest method
packages is really package_ver

Fix issue with travis.yml to provide language
@ferventcoder
Copy link
Contributor

Was this merged in? :)

@ferventcoder
Copy link
Contributor

Does appear that it was merged in. I don't see it contained in any tags or branches.

ferventcoder pushed a commit to ferventcoder/puppet-chocolatey that referenced this pull request Aug 29, 2016
(docs) Update README to current module readme style guidelines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants