summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Return empty hash from brew_info and avoid a bunch of nil checksmulti_packageTim Smith2020-04-172-13/+8
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Use package_name_arrayTim Smith2020-04-171-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Properly handle unavailable packagesTim Smith2020-04-172-3/+32
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove some empty specs I left behindTim Smith2020-04-171-38/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Use select instead of mapTim Smith2020-04-171-2/+2
| | | | | | It makes more sense when you read it Signed-off-by: Tim Smith <tsmith@chef.io>
* Use .map.compact instead of filter_map to support ruby 2.6Tim Smith2020-04-171-2/+3
| | | | | | I left a note to kill this later Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix the upgrade action specsTim Smith2020-04-171-25/+20
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Test install / remove / purge actionsTim Smith2020-04-171-39/+68
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2020-04-171-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Rework how upgrades workTim Smith2020-04-161-8/+11
| | | | | | See the comment for why I had to do this Signed-off-by: Tim Smith <tsmith@chef.io>
* Update specs for brew_cmd_outputTim Smith2020-04-162-6/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add specs for available versionTim Smith2020-04-161-0/+12
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update specs for brew_info and installed_versionTim Smith2020-04-161-93/+193
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Squash 2 methods into oneTim Smith2020-04-161-12/+8
| | | | | | This helper didn't help much Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix the load_current_resource specsTim Smith2020-04-161-17/+13
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve the trace logTim Smith2020-04-161-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve the homebrew_user description for documentationTim Smith2020-04-161-1/+1
| | | | | | This can be a name or UID Signed-off-by: Tim Smith <tsmith@chef.io>
* Reduce comment liesTim Smith2020-04-161-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Use .compact to remove nil valuesTim Smith2020-04-161-6/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Support working with package aliasesTim Smith2020-04-161-5/+28
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Make sure we concat an package_name as an arrayTim Smith2020-04-161-1/+1
| | | | | | This prevents the non-array form from breaking things Signed-off-by: Tim Smith <tsmith@chef.io>
* WIP: Add multipackage support to homebrewTim Smith2020-04-161-26/+46
| | | | | | | | | Issues: - If you try to remove a package that doesn't exist it explodes - If you try to use a package by its alias name it will blow up. Exampe: package 'golang' instead of 'go'. The hash of available packages will get built with 'go' as that's the package name - versions are pretty much ignored, but I think that makes sense with homebrew. It's a roll forward package system so you can't install a specific version. That's just not a concept of the package system. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.0.215 by Chef Expeditorv16.0.215Chef Expeditor2020-04-167-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9679 from chef/lcg/ruby-2.7-6Lamont Granquist2020-04-161-1/+1
|\
| * Ruby 2.7 fix for powershell_outlcg/ruby-2.7-6Lamont Granquist2020-04-161-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #9678 from chef/utils_typosTim Smith2020-04-162-2/+2
|\ \ | |/ |/| Fix typo in chef-utils comment
| * Fix typo in chef-utils commentTim Smith2020-04-162-2/+2
|/ | | | | | These generate the vscode helpers so there was a typo in that snippet Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.0.214 by Chef Expeditorv16.0.214Chef Expeditor2020-04-167-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9676 from ↵Tim Smith2020-04-161-0/+1
|\ | | | | | | | | MsysTechnologiesllc/dh/add-timeout-for-msu-package-removal msu_package: Removal also requires passing timeout property
| * msu pkg removal also requires timeoutdheerajd-msys2020-04-161-0/+1
|/ | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Bump version to 16.0.213 by Chef Expeditorv16.0.213Chef Expeditor2020-04-167-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9666 from chef/eol_release_warningTim Smith2020-04-152-0/+31
|\ | | | | Add a warning to the end of the chef run for EOL releses
| * Simplify the logic + improve the specTim Smith2020-04-152-11/+8
| | | | | | | | | | | | | | Use 2006 as the base year. Chef 15 goes EOL next year on 5-1-2021 so 2006 + 15 = 2021 and then we know it. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add a spec for the EOL warningsTim Smith2020-04-151-0/+16
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add a warning to the end of the chef run for EOL releseseol_release_warningTim Smith2020-04-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | We really want to encourage people to upgrade. One way we can do this is to just warn them that they're on an EOL release. This simple warning might nudge them to upgrade their client. It's works off the base EOL data of Chef 15 and takes the current release to add to that date. That way we don't have to maintain anything and as long as we keep a yearly release we're good. If we change the schedule then we either remove this or update the logic. That's a risk in shipping code that doesn't fire for 2 years. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 16.0.212 by Chef Expeditorv16.0.212Chef Expeditor2020-04-157-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9649 from ↵Tim Smith2020-04-155-3/+16
|\ \ | |/ |/| | | | | MsysTechnologiesllc/dh/fix-msu-pkg-cumulative-update msu_package: Fix cumulative updates installation and provide a 3600s default timeout
| * add timeout propertydheerajd-msys2020-04-145-1/+13
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * update specdheerajd-msys2020-04-141-2/+3
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * fix msu pkg cumulative updatesdheerajd-msys2020-04-141-2/+2
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | Bump version to 16.0.211 by Chef Expeditorv16.0.211Chef Expeditor2020-04-157-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9662 from chef/csnapp/fix_amazon_linuxTim Smith2020-04-151-2/+2
|\ \ | | | | | | Fix to use correct Amazon Linux 2 queues
| * | Fix to use correct Amazon Linux 2 queuescsnapp/fix_amazon_linuxChristopher A. Snapp2020-04-141-2/+2
| | | | | | | | | | | | Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
* | | Bump version to 16.0.210 by Chef Expeditorv16.0.210Chef Expeditor2020-04-157-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9664 from chef/they_are_propertiesTim Smith2020-04-152-5/+5
|\ \ \ | |/ / |/| | Replace a few uses of attributes / parameters in messaging with properties
| * | Replace a few uses of attributes / parameters in messaging with propertiesTim Smith2020-04-152-5/+5
|/ / | | | | | | | | | | I think we may finally have them all now. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 16.0.209 by Chef Expeditorv16.0.209Chef Expeditor2020-04-147-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9659 from chef/timeoutsTim Smith2020-04-1413-31/+39
|\ \ | |/ |/| Updates to timeout properties in various resources
| * Give execute resource a proper timeout defaulttimeoutsTim Smith2020-04-132-8/+3
| | | | | | | | | | | | This should just be done on the resource instead of hacking it into the provider Signed-off-by: Tim Smith <tsmith@chef.io>
| * Updates to timeout properties in resourcesTim Smith2020-04-1312-23/+36
| | | | | | | | | | | | | | | | | | 1) make sure they all have desired state false 2) Fix some indentation 3) Fix portage_package to have a type of String/Integer to match package 4) Add the String type to paludis_package to match the package default Signed-off-by: Tim Smith <tsmith@chef.io>