summaryrefslogtreecommitdiff
path: root/lib/chef/formatters
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9967 from zfjagann/masterTim Smith2020-06-152-2/+2
|\ | | | | Add "most recent call first" to traceback message
| * Add "most recent call first" to traceback messageZeal Wierslee2020-06-082-2/+2
| | | | | | | | Signed-off-by: Zeal Wierslee <zeal@wierslee.me>
* | Use .match? not =~ when match values aren't necessaryTim Smith2020-06-111-2/+2
|/ | | | | | Autocorrected from RuboCop Performance which is now smart enough to detect when you use the match and when you don't. Using match? does not create any objects so it's slightly faster and uses less memory. Signed-off-by: Tim Smith <tsmith@chef.io>
* Get lib/ free of spelling violations.Pete Higgins2020-05-181-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Use the dist values in server error messagesbetter_errorsTim Smith2020-05-082-9/+9
| | | | | | | Improves the branding here and makes sure this displays correctly for cinc Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-1310-10/+10
| | | | | | | | 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>
* Fix typoVivek Singh2020-04-061-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Turn off notifications from log resource by defaultLamont Granquist2020-03-121-1/+1
| | | | | | This should be switched to the notify_group resource now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Replace highline.color with pastel.decorateBryan McLellan2020-03-021-16/+7
| | | | | | | | | | Contributes to the removal of the 'heavy' highline dependency (#9359) by switching from highline.color to pastel.decorate, which is a drop-in replacement. Pastel is part of the tty[1] family of libraries. [1] https://github.com/piotrmurach/tty#3-components Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-2/+2
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix show_progress in remote_file is causing FloatDomainError: InfinityVivek Singh2019-09-191-3/+3
| | | | | | | - Add check to avoid total if zero or nil. - Set @progress[resource] default value to -1 so that it can start with 0%. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Style/StringLiteralsInInterpolationLamont Granquist2019-07-052-2/+2
| | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/ClassCheckLamont Granquist2019-07-054-6/+6
| | | | | | convert kind_of? to is_a? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/NegatedIfLamont Granquist2019-07-053-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/EmptyMethodLamont Granquist2019-07-023-74/+37
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-023-0/+6
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-0812-29/+29
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Target Mode initial implementationBryan McLellan2019-05-062-0/+2
| | | | Signed-off-by: Bryan McLellan <btm@chef.io>
* Update more brand names to currentTim Smith2019-05-033-4/+5
| | | | | | Update Chef Client and Chef Server brand names to current. Signed-off-by: Tim Smith <tsmith@chef.io>
* Reload the changes, adapt a bitTensibai2019-05-023-11/+13
| | | | Signed-off-by: Tensibai <tensibai@iabis.net>
* chef-client => Chef::Dist::CLIENTMarc Chamberland2019-04-264-5/+9
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* WIP: Remove audit mode from chef-clientTim Smith2019-03-111-46/+2
| | | | | | | | This just gives us a line count to the change and perhaps a starting point for when we do this in Chef 15 Signed-off-by: Tim Smith <tsmith@chef.io> Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Extract Action Collection from Data CollectorLamont Granquist2019-03-112-2/+2
| | | | | | See the PR for details on this change. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Misc YARD updates for knifeTim Smith2019-01-251-1/+13
| | | | | | Some YARD fixes as I was reading through knife bits. Signed-off-by: Tim Smith <tsmith@chef.io>
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-155-36/+36
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* change HTTPServerException to HTTPClientException for ruby 2.6Lamont Granquist2019-01-035-5/+5
| | | | | | includes backcompat for 2.5 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/MutableConstantLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/UnneededInterpolationLamont Granquist2018-07-022-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-022-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* clean up whitespace againLamont Granquist2018-07-024-15/+15
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-025-141/+141
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-022-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Simplify the deprecations system a bit, and introduce ways to silence ↵Noah Kantrowitz2018-06-142-18/+13
| | | | | | deprecation warnings. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Feed the Rubocop.Noah Kantrowitz2018-04-261-1/+1
| | | | | | Some day I will remember which is which on string styles. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Allow specifying `ignore_failure :quiet` to disable the error spew.Noah Kantrowitz2018-04-261-1/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* mechanical conversion of most debug log statements to traceThom May2018-03-261-3/+3
| | | | Signed-off-by: Thom May <thom@chef.io>
* Chefstyle fixes.Noah Kantrowitz2017-04-031-4/+3
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Expand the system info displayed on error to give us some more data to work ↵Noah Kantrowitz2017-03-311-1/+19
| | | | | | with when helping users. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-132-11/+10
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/DefWithParenthesesLamont Granquist2016-12-061-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Structure deprecations with additional metadatatm/deprecation_with_urlThom May2016-11-162-5/+24
| | | | | | | | 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>
* Hook up the recipe_file_loaded event which was defined but not actually called.Noah Kantrowitz2016-09-021-2/+2
| | | | | | | This also extends two of the recipe events to get the recipe name in addition to the path because that's usually useful for display. These arguments are both added at the end so the auto-magic argument trimmer will keep backwards compat. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* autofixing Style/MultilineIfThen copLamont Granquist2016-08-161-2/+2
|
* Log platform in pretty error outputcd/log-platformJordan Running2016-03-182-1/+3
|
* Merge pull request #4658 from chef/tm/remote_file_download_progress11.9Thom May2016-03-151-0/+16
|\ | | | | Remote file download progress
| * Enable progress output to be configuredtm/remote_file_download_progressThom May2016-03-041-2/+2
| | | | | | | | Add tests around progress output and tidy up
| * Merge branch 'remote-file-download-progress' of ↵Thom May2016-03-031-0/+16
| |\ | | | | | | | | | https://github.com/brandocorp/chef into tm/remote_file_download_progress
| | * new doc formatter event, remove progress barBrandon Raabe2015-03-201-0/+16
| | |
* | | manual fixing for raise unlessLamont Granquist2016-03-141-2/+2
| | |
* | | chefstyle Style/AndOr fixesLamont Granquist2016-03-143-4/+4
| | | | | | | | | | | | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.