summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Return empty hash from brew_info and avoid a bunch of nil checksmulti_packageTim Smith2020-04-171-8/+3
| | | | 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-171-3/+22
| | | | 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>
* 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-161-2/+0
| | | | 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>
* 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-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Ruby 2.7 fix for powershell_outlcg/ruby-2.7-6Lamont Granquist2020-04-161-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version to 16.0.214 by Chef Expeditorv16.0.214Chef Expeditor2020-04-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* 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-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9666 from chef/eol_release_warningTim Smith2020-04-151-0/+15
|\ | | | | Add a warning to the end of the chef run for EOL releses
| * Simplify the logic + improve the specTim Smith2020-04-151-8/+5
| | | | | | | | | | | | | | 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 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-151-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9649 from ↵Tim Smith2020-04-153-1/+7
|\ \ | |/ |/| | | | | MsysTechnologiesllc/dh/fix-msu-pkg-cumulative-update msu_package: Fix cumulative updates installation and provide a 3600s default timeout
| * add timeout propertydheerajd-msys2020-04-143-1/+7
| | | | | | | | 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-151-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 16.0.210 by Chef Expeditorv16.0.210Chef Expeditor2020-04-151-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | 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-141-1/+1
| | | | | | | | 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>
* | Bump version to 16.0.208 by Chef Expeditorv16.0.208Chef Expeditor2020-04-141-1/+1
|/ | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.0.207 by Chef Expeditorv16.0.207Chef Expeditor2020-04-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-13706-707/+707
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version to 16.0.206 by Chef Expeditorv16.0.206Chef Expeditor2020-04-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Use the correct plist class in the mac user providerTim Smith2020-04-131-2/+2
| | | | | | This is actually a subclass of the mac user provider and not the Plist gem. This is a super confusing name btw. Plist passed Plist, but it's a different Plist. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.0.205 by Chef Expeditorv16.0.205Chef Expeditor2020-04-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.0.204 by Chef Expeditorv16.0.204Chef Expeditor2020-04-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9635 from chef/VSingh/fix-sudo-password-errorTim Smith2020-04-131-2/+12
|\ | | | | Fixes for sudo password prompt
| * Match reason :bad_sudo_password for wrong attemptVSingh/fix-sudo-password-errorVivek Singh2020-04-111-2/+2
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Fixes for sudo passwordVivek Singh2020-04-091-2/+12
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Bump version to 16.0.203 by Chef Expeditorv16.0.203Chef Expeditor2020-04-131-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | remove support for SLES11dheerajd-msys2020-04-131-1/+0
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | Bump version to 16.0.202 by Chef Expeditorv16.0.202Chef Expeditor2020-04-101-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9642 from chef/macos-resourcesTim Smith2020-04-107-8/+218
|\ \ | | | | | | Add the plist resource from the macos cookbook
| * | Update lib/chef/resource/plist.rb Tim Smith2020-04-101-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>