summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing whitespace copsLamont Granquist2016-02-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | 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
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-4/+4
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* fix typo in commentLamont Granquist2016-01-271-1/+1
|
* suppress reporter failures by using validate_utf8=falselcg/suppress-reporter-failuresLamont Granquist2016-01-261-2/+22
| | | | | | | - doesn't turn off the utf8 validation in the rest of the rest API - has to use a different rest object because we have to pass options in the constructor - the handling of Chef::Config in Chef::Client is just awful
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-40/+40
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-4/+4
|
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-4/+5
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Use signing protocol 1.1 by defaultjdm/default-auth-1.1Jay Mundrawala2015-12-101-12/+0
| | | | | | | | | | | All supported Chef servers support the 1.1 signing protocol. There is no reason to continue using 1.0, and removing it as the default allows us to remove a bunch of code that tries to upgrade 1.0 to 1.1 when the node name is too long. If the user specifies 1.0 as the auth protocol version from this point on, they will have to guarantee that the node name is not too long.
* Use why-run vs. why_run or whyrunTim Smith2015-10-181-1/+1
|
* fix PR feedbacklcg/ruby-profilingLamont Granquist2015-10-131-5/+3
|
* lazy load ruby-profLamont Granquist2015-10-061-6/+3
|
* add optional ruby-profiling with --profile-rubyLamont Granquist2015-10-051-0/+32
| | | | dumps a large call graph into /var/chef/cache/graph_profile.out
* Use the dynamic policy builder everywheredanielsdeleo2015-09-171-1/+1
|
* remove now-useless GCLamont Granquist2015-08-241-2/+1
|
* Exceptions for audits should only get wrapped if audit mode is enabledJay Mundrawala2015-06-161-6/+12
|
* Use the central priority map for `provides`John Keiser2015-06-021-7/+0
|
* Minor updates for PR comments.sd/CI-31Serdar Sutay2015-05-291-1/+1
|
* Make sure the audit mode output is reflected both in the logs and in the ↵Serdar Sutay2015-05-291-2/+2
| | | | formatter output.
* Make audit comments nicer!John Keiser2015-05-281-9/+23
|
* Move notification methods back to ClientJohn Keiser2015-05-281-2/+83
|
* Don't use deprecated "runner" in RunContext itselfJohn Keiser2015-05-281-1/+1
|
* Un-deprecate node writingJohn Keiser2015-05-281-2/+4
|
* Deprecate some things that don't seem to be needed outsideJohn Keiser2015-05-281-31/+44
|
* Move public APIs first, private secondJohn Keiser2015-05-281-274/+201
|
* Comment the heck out of Chef::ClientJohn Keiser2015-05-281-44/+384
|
* remove cruftClaire McQuin2015-05-271-2/+0
|
* Raise errors at the end of the client run, for proper exiting.Claire McQuin2015-05-271-24/+25
|
* remove configuration optionClaire McQuin2015-05-271-8/+5
|
* Mark run failed on failed audits unless configured to audit as warning.Claire McQuin2015-05-271-7/+21
| | | | Remove unnecessary newline from RunFailedWrappingError backtrace
* Merge pull request #3207 from Igorshp/exception_handlersThom May2015-04-301-2/+2
|\ | | | | patch to always run exception handlers
| * updated based on @lamont-granquist commentsIgor Shpakov2015-04-131-1/+0
| |
| * do not overwrite whole @run_status in #build_nodeIgor Shpakov2015-04-111-1/+2
| |
| * patch to always run exception handlersIgor Shpakov2015-04-091-1/+1
| | | | | | | | | | | | exception handlers require @run_status to be set. This patch moves @run_status declaration higher up so exception handlers report on all problems inside do_run begin block
* | move where we dep inject the priority mapsLamont Granquist2015-04-151-0/+7
| | | | | | | | | | fixes the priority maps on chef-apply by wiring it up in the constructor of the client
* | add resource_resolver and resource_priority_mapLamont Granquist2015-04-151-6/+6
|/ | | | also wire them up through the Chef class.
* Add minimal ohai mode option flagminimal-ohai-modedanielsdeleo2015-03-271-1/+2
|
* We should not change how exceptions are raised if audit mode is disabledJay Mundrawala2015-03-171-1/+2
|
* Fix more incorrect terminologyJulian C. Dunn2015-03-111-1/+1
|
* Move the require up a levelRob Redpath2015-01-251-0/+1
|
* Drop the SSL warning now that we have a safe defaultPhil Dibowitz2015-01-161-33/+0
|
* Suppress SSL warnings if I know what I'm doingPhil Dibowitz2015-01-151-1/+1
|
* Unit tests for audit-mode in chef-solo.Claire McQuin2014-12-171-1/+2
| | | | | * Audits are disabled by default. * Also, updated spec file to use RSpec :let.
* if in why_run, do not enter the audit phase - because people run why_run to ↵tyler-ball2014-12-171-2/+7
| | | | see converge statistics
* Failing an audit example will now raise an error and make chef exit with a ↵tyler-ball2014-12-171-1/+2
| | | | non-zero code
* Instructions on running audit mode examples.Serdar Sutay2014-12-171-6/+2
|
* Use a central runnerClaire McQuin2014-12-171-1/+1
|
* Add a Chef::Audit::Controls object for 'controls'Claire McQuin2014-12-171-2/+14
|