summaryrefslogtreecommitdiff
path: root/lib/chef/application
Commit message (Collapse)AuthorAgeFilesLines
* Fix --no-fips on chef-clientbtm/no-fipsBryan McLellan2017-02-021-1/+1
| | | | | | | Somewhat unintuitively, mixlib-cli needs both `boolean => true` as well as `long => "--[no-]option"` for the boolean feature to work. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* fix Style/MultilineIfModifierLamont Granquist2016-12-061-4/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #5547 from chef/lcg/unified-integerLamont Granquist2016-11-161-1/+1
|\ | | | | Core: fix Lint/UnifiedInteger cop
| * fix Lint/UnifiedInteger copLamont Granquist2016-11-151-1/+1
| | | | | | | | | | | | believe this becomes necessary for ruby 2.4/3.0 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Structure deprecations with additional metadatatm/deprecation_with_urlThom May2016-11-161-2/+2
|/ | | | | | | | This adds URLs to each class of deprecation, and correctly prints and formats them for maximum user efficiency. We also provide the URL to the data collector for Visibility to ingest. Signed-off-by: Thom May <thom@chef.io>
* fixes for rubocop 0.44.1 enginelcg/rubocop-0.44.1Lamont Granquist2016-10-202-3/+3
| | | | | | a few cops we have enabled got a little more accurate/stricter Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Adding support for rfc 62 exit code 213Jeremy J. Miller2016-10-061-0/+9
| | | | Signed-off-by: Jeremy J. Miller <jm@chef.io>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-172-6/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge branch 'master' into configoptionNoah Kantrowitz2016-08-022-4/+11
|\
| * Use Mixlib::Archive to extract tarballsThom May2016-07-072-4/+4
| | | | | | | | | | | | | | this allows us to be truely cross platform, and also to ignore unsafe paths and permissions. Signed-off-by: Thom May <thom@chef.io>
| * Ensure that chef-solo uses the expected repo dirtm/correct_repo_pathThom May2016-06-241-0/+7
| | | | | | | | | | | | | | | | | | Solo has always defaulted to `/var/chef` but local-mode uses the user's home directory, so we need to ensure that we set the correct path before entering local-mode. Fixes: #5051 Signed-off-by: Thom May <thom@may.lt>
* | First pass on --config-option handling.Noah Kantrowitz2016-06-213-0/+24
|/
* Merge pull request #4957 from chef/tm/solo_fixesThom May2016-05-311-1/+9
|\ | | | | Ensure recipe-url works right in solo
| * Ensure recipe-url works right in solotm/solo_fixesThom May2016-05-201-1/+9
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | * define exit codesSteven Murawski2016-05-235-12/+238
|/ | | | | | | | | | | | * exit code functional specs * audit exit codes * reboot now/reboot failed/reboot pending exit codes * Deal with forked and unforked process and get the right exit code * Reboot Now should really be reboot scheduled * pass exception rather than exit code * updated with sigint and sigterm * support legacy fatal!("", 2) behavior * fixup all fatal! and exit! calls
* move legacy config into a separate functiontm/zoloThom May2016-05-161-26/+29
| | | | | | per review Signed-off-by: Thom May <thom@may.lt>
* remove dead commentThom May2016-05-161-1/+0
| | | | Signed-off-by: Thom May <thom@may.lt>
* Ensure that solo specific code is run at the proper timeThom May2016-05-162-5/+5
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* default to using local modeThom May2016-05-161-28/+48
| | | | Signed-off-by: Thom May <thom@chef.io>
* Revert "Run in fips mode if node is fips enabled"Thom May2016-04-271-1/+1
|
* run in fips mode if node is fips enabledMatt Wrock2016-04-251-1/+1
|
* Add optional integer argument for --daemonize optionJordan Running2016-03-291-26/+33
|
* Merge pull request #4707 from chef/lcg/useless-assignmentLamont Granquist2016-03-152-3/+3
|\ | | | | fix some UselessAssignment cases
| * fix some UselessAssignment caseslcg/useless-assignmentLamont Granquist2016-03-142-3/+3
| |
* | fix `or return` to `return unless`Lamont Granquist2016-03-141-1/+1
| |
* | chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
|/ | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* Merge pull request #4617 from chef/lcg/chefstyle-perfLamont Granquist2016-03-041-1/+1
|\ | | | | Autofixing new Perf cops in 0.37.2
| * Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* | Add support for solo.dJay Mundrawala2016-02-241-0/+4
| |
* | Refactor application/client.rb to use DotD mixin for loading client.dJay Mundrawala2016-02-241-25/+3
| |
* | Use escape_glob_dir for client.d/conf.dJay Mundrawala2016-02-241-1/+1
| | | | | | | | | | | | | | | | Passing the value of `escape_glob` to Dir.glob does not always work correctly on Windows. Always use forward slashes when globbing, even on Windows. We now do this via `escape_glob_dir`, which calls Pathname.cleanpath, which does the foward slash thing.
* | Fix broken load_conf_d_fileJay Mundrawala2016-02-241-2/+2
| | | | | | | | Also, do less mocking so the test will catch the error
* | Make chef-client read client.dJay Mundrawala2016-02-241-0/+29
|/ | | | | client.d/*.rb will be read in sorted order. All directories will be ignored.
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-192-3/+3
| | | | no enforced trailing comma on arguments...
* Tighten up wording (thanks @thommay!)Jos Backus2016-02-171-1/+1
|
* chef-client: add --[no]skip-cookbook-sync optionJos Backus2016-02-171-0/+5
| | | | | Use with caution. Useful for patching a set of cookbooks on a machine when iterating during development.
* fix alignmentlcg/bump-rubocopLamont Granquist2016-02-121-1/+1
|
* pull rubocop 0.37.2 into chefstyleLamont Granquist2016-02-121-2/+2
| | | | | this is from the same ruleset that we had, but the new code catches more conditions.
* Merge pull request #4541 from chef/lcg/chefstyle-batchLamont Granquist2016-02-112-3/+3
|\ | | | | fix a batch of cops
| * auto fixing some rubocopsLamont Granquist2016-02-092-3/+3
| | | | | | | | | | | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* | rubocop demands a sacrificelcg/remove-rm-rfLamont Granquist2016-02-101-1/+1
| |
* | use Pathname correctlyLamont Granquist2016-02-101-1/+2
| |
* | fix windows path issues correctlyLamont Granquist2016-02-101-1/+1
| | | | | | | | this really closes #1515 and #1751
* | remove rm -rf in chef solo recipe_urlLamont Granquist2016-02-102-17/+40
|/ | | | | | | | | | | - deprecates '-r' used for the recipe_url in chef-solo - adds --delete-entire-chef-repo option for users who want the old behavior back. - cleans up some old code closes #3802 closes #1515 closes #1751
* autofixing some missed copsLamont Granquist2016-02-052-6/+6
| | | | second round of autofixing for some reason...
* autofixing whitespace copsLamont Granquist2016-02-056-30/+29
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Merge pull request #4481 from chef/jdm/fips-58Jay Mundrawala2016-02-031-0/+6
|\ | | | | Allow use of command line fips switch for knife
| * Allow use of command line fips switch for knifeJay Mundrawala2016-01-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | This somewhat worked before. However, it was just for knife bootstrap. It also didn't support --no-fips in the case where it was in your knife.rb and you decided that you didn't want to use fips for that one call. The assumption here is fips mode you run knife with is the fips mode the node will get. This has the nice property that validatorless bootstraps will talk to the chef server in fips mode if the node is requested to be in fips mode.
* | Some more author domain stragglers.Noah Kantrowitz2016-02-023-4/+4
| |
* | Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-023-3/+3
| | | | | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"