summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update lib/chef/provider/package/pacman.rb pacman_multipackageTim Smith2020-04-181-1/+1
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
* using allow_nilsIngo Becker2020-04-181-0/+1
| | | | Signed-off-by: Ingo Becker <ingo@orgizm.net>
* added multipackage support for pacman resourceIngo Becker2020-04-182-181/+88
| | | | Signed-off-by: Ingo Becker <ingo@orgizm.net>
* Bump version to 16.0.226 by Chef Expeditorv16.0.226Chef Expeditor2020-04-187-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.0.225 by Chef Expeditorv16.0.225Chef Expeditor2020-04-187-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.0.224 by Chef Expeditorv16.0.224Chef Expeditor2020-04-187-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9689 from chef/smallerTim Smith2020-04-181-8/+20
|\ | | | | Remove a few additional files from our builds
| * Remove a few additional files from our buildssmallerTim Smith2020-04-171-8/+20
| | | | | | | | | | | | Knock maybe another 150k from the builds Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #9693 from TheLunaticScripter/tls/fix_16_habTim Smith2020-04-181-1/+1
|\ \ | | | | | | Bump ruby for windows to 2.7
| * | Bump ruby for windows to 2.7John Snow2020-04-181-1/+1
| | | | | | | | | | | | Signed-off-by: John Snow <thelunaticscripter@outlook.com>
* | | Merge pull request #9692 from damacus/fix/bundler-clean-envTim Smith2020-04-184-5/+5
|\ \ \ | | | | | | | | [CHORE] with_clean_env is deprecated
| * | | [FIX DEPRECATION] with_clean_env is deprecatedDan Webb2020-04-184-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | clean_env is now unbundled Signed-off-by: Daniel Webb <dan.webb@damacus.io>
* | | | Merge pull request #9691 from damacus/fix/redhat-6.9-specsTim Smith2020-04-181-1/+1
|\ \ \ \ | |/ / / |/| | | CentOS 6.9 Fauxhai deprecation
| * | | Bump CentOS version from 6.9 to 6.10Dan Webb2020-04-181-1/+1
|/ / / | | | | | | | | | Signed-off-by: Daniel Webb <dan.webb@damacus.io>
* | | Bump version to 16.0.223 by Chef Expeditorv16.0.223Chef Expeditor2020-04-187-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9690 from chef/fix_mac_installer_imageTim Smith2020-04-171-0/+0
|\ \ \ | |_|/ |/| | Remove "Code Can" from dmg background
| * | Remove "Code Can" from dmg backgroundfix_mac_installer_imageTim Smith2020-04-171-0/+0
|/ / | | | | | | | | | | We don't use this slogan anymore Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 16.0.222 by Chef Expeditorv16.0.222Chef Expeditor2020-04-187-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 16.0.221 by Chef Expeditorv16.0.221Chef Expeditor2020-04-187-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #7982 from chef/multi_packageTim Smith2020-04-173-217/+387
|\ \ | | | | | | Add multipackage support to homebrew
| * | Use lamont's magic error handlingTim Smith2020-04-172-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tiny tweak to grab the first item so we actually get the hash back in the error handling. Given: ```ruby package %w{curl totally_junk_pkg} do action :upgrade end ``` ``` * No candidate version available for totally_junk_pkg ================================================================================ Error executing action `upgrade` on resource 'homebrew_package[curl, totally_junk_pkg]' ================================================================================ Chef::Exceptions::Package ------------------------- No candidate version available for totally_junk_pkg ``` Signed-off-by: Tim Smith <tsmith@chef.io>
| * | 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>
* | | Merge pull request #9688 from chef/lcg/required-properties-chef-16Tim Smith2020-04-174-5/+42
|\ \ \ | | | | | | | | Force requiring properties
| * | | The value property in windows_env is not required for deletelcg/required-properties-chef-16Lamont Granquist2020-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Good example of why this is breaking, but this is better. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | | Force requiring propertiesLamont Granquist2020-04-173-4/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All required properties are now required for all actions by default even if the action does not reference the property. In order to only make the property required for a subset of the actions, specify them as an array of symbols to the required options on the property. ``` property :whatever, String, required: %i{start stop} action :start do end action :stop do end action :enable do end action :disable do end ``` That property will be required for start+stop but not for enable+disable. There's an unaddressed edge case here where if you reference the property in an action which was not specified that it will also fail validation. That is correct behavior. We should probably dig into how to warn the user that they must either remove the reference to the property from that action or else to add the action to the list of required actions on the property. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version to 16.0.220 by Chef Expeditorv16.0.220Chef Expeditor2020-04-177-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9687 from chef/bump_ohaiTim Smith2020-04-172-14/+14
|\ \ \ | | | | | | | | Update Ohai to 16.0.18 for Windows DMI plugin
| * | | Update Ohai to 16.0.18 for Windows DMI pluginTim Smith2020-04-172-14/+14
|/ / / | | | | | | | | | | | | | | | Also bump all the other stuff while we're at it. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Bump version to 16.0.219 by Chef Expeditorv16.0.219Chef Expeditor2020-04-177-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.