summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
Commit message (Collapse)AuthorAgeFilesLines
* add a comment explaining what we're doing.lcg/thread-local-event-storageLamont Granquist2019-10-021-0/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Event dispatcher thread local storageLamont Granquist2019-10-021-2/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/NegatedIfLamont Granquist2019-07-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/EmptyMethodLamont Granquist2019-07-021-172/+86
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | 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-082-4/+4
| | | | | | | 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>
* WIP: Remove audit mode from chef-clientTim Smith2019-03-111-31/+0
| | | | | | | | 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-15/+58
| | | | | | See the PR for details on this change. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* mechanical conversion of most debug log statements to traceThom May2018-03-261-2/+2
| | | | Signed-off-by: Thom May <thom@chef.io>
* Makes life easier for hook authors switching from the older report handler ↵Noah Kantrowitz2017-11-271-2/+2
| | | | | | syntax. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* RFC 59: Load Ohai pluginstm/ohai_plugins_2Thom May2017-04-051-0/+16
| | | | | | This adds a new phase in the compilation of the run context. Signed-off-by: Thom May <thom@chef.io>
* add attribute_changed hook to event handlersLamont Granquist2016-10-281-0/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* 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>
* Merge pull request #4658 from chef/tm/remote_file_download_progress11.9Thom May2016-03-151-0/+6
|\ | | | | Remote file download progress
| * Enable progress output to be configuredtm/remote_file_download_progressThom May2016-03-041-6/+6
| | | | | | | | Add tests around progress output and tidy up
| * Merge branch 'remote-file-download-progress' of ↵Thom May2016-03-031-0/+6
| |\ | | | | | | | | | https://github.com/brandocorp/chef into tm/remote_file_download_progress
| | * new doc formatter event, remove progress barBrandon Raabe2015-03-201-0/+9
| | |
* | | add comments and cleanupLamont Granquist2016-02-091-5/+1
| | |
* | | get the formatting for cookbook gems correctLamont Granquist2016-02-091-0/+24
|/ / | | | | | | | | | | | | | | | | | | this leverages the PR: https://github.com/bundler/bundler/pull/4245 to redirect output from bundler into chef's logger/formatter to get the UI right. if you don't have that in the external bundler you'll just get output on STDOUT. fix is to upgrade bundler.
* | autofixing whitespace copsLamont Granquist2016-02-053-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | 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"
* | Use double quotes by defaultThom May2016-01-142-4/+4
| | | | | | | | | | | | | | 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.
* | Fix a typo comment. [ci skip]Noah Kantrowitz2015-12-151-1/+1
| |
* | More code reviewtm/live_execute_streamingThom May2015-11-111-4/+1
| |
* | Implement code review comments and fix failing testsThom May2015-11-091-3/+1
| |
* | Implement live streaming for execute resourcesAdam Jacob2015-11-092-0/+18
| | | | | | | | | | | | | | | | | | | | This brings live streaming of execute resource output to the output formatters. It also adds a mechanism for checking to see if an output formatter is in use through the event dispatch system. It adds a new configuration option, "always_stream_execute", which does what it says on the tin.
* | Added run list expansion json conversion. Creates a json tree from the run ↵kyleen/addExpandedRunListKyleen MacGugan2015-10-211-0/+3
| | | | | | | | | | | | | | | | | | | | list expansion trace. Added event to report expanded run list Updated json conversion to use chef compat json. Remove RunListExpansion from JsonCompat
* | Fix dispatch when there are different receiversJohn Keiser2015-10-051-2/+5
| | | | | | | | | | with different numbers of arguments. Fixes https://github.com/chef/chef-dk/issues/546)
* | Fix dispatching events to methods with arity < argsJohn Keiser2015-09-011-1/+1
| |
* | Make Dispatcher metaprogramming more straightforwardJohn Keiser2015-09-011-18/+18
| |
* | Pass deprecations through formatter instead of logsJohn Keiser2015-09-012-6/+13
| |
* | Support forwards compatibility for event sinks.Noah Kantrowitz2015-07-311-1/+11
| | | | | | | | | | | | We can add new arguments and events without breaking compat as long as the new arguments are added at the end. The new args will be silently trimmed for sending to older event sinks, and new event types will be ignored.
* | Revert back to the first argument being cookbook_name.Noah Kantrowitz2015-07-311-1/+1
| |
* | Make the doc formatter actually show what version of a cookbook is being used.Noah Kantrowitz2015-07-221-2/+2
| | | | | | | | | | | | | | | | This has bugged me forever. It does change the API of the Formatter system in a ~non-back-compat way but I don't think I've actually seen any formatters outside of core Chef so how much do we want to worry about this? We could write a shim in `Chef::EventDispatcher::Dispatcher` to check the arity of the method if needed.
* | Merge remote-tracking branch 'origin/master' into chef_handlerRanjib Dey2015-06-242-23/+46
|\ \
| * | Add comments and use def self.x instead of class<<selfJohn Keiser2015-06-231-1/+1
| | |
| * | Create the `action :name do ... end` syntax for ResourceJohn Keiser2015-06-231-16/+40
| | |
* | | add name class attribute for user defined handlers. more readable invalid ↵Ranjib Dey2015-06-231-13/+24
| | | | | | | | | | | | event handler exception name.
* | | fix typoRanjib Dey2015-06-181-1/+1
| | |
* | | use Chef.run_context to register handler if setRanjib Dey2015-06-131-1/+9
| | |
* | | Merge remote-tracking branch 'origin/master' into HEADRanjib Dey2015-06-122-2/+9
|\ \ \ | |/ / | | | | | | | | | Conflicts: lib/chef/chef_class.rb
| * | Make sure the audit mode output is reflected both in the logs and in the ↵Serdar Sutay2015-05-291-2/+2
| | | | | | | | | | | | formatter output.
| * | Display policy name and ID during the chef rundanielsdeleo2015-05-221-0/+5
| | |
| * | Allow inspection of event dispatch's subscribersinspect-dispatcher-subscribersdanielsdeleo2015-05-061-0/+2
| |/
* | [RFC-039] chef handler dslRanjib Dey2015-04-181-0/+46
|/
* Merge pull request #2758 from chef/mcquin/control_groupSerdar Sutay2015-02-111-3/+3
|\ | | | | Change audit DSL method controls to control_group.
| * Update DSL method name to controls_group.mcquin/control_groupClaire McQuin2015-01-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update to use control_group. Unify wording along control_group. Unify wording along control_group. Fix typo. Enable audit mode. Update to use control_group syntax. Update for audit DSL changes. Update for audit DSL change.
* | Use #define_method instead of #class_eval (ruby 1.8 specific, issue #2497)Xabier de Zuazo2015-01-271-5/+3
|/
* Addressing review comments, adding documentationtyler-ball2014-12-181-0/+5
|
* Wiring audit event proxy to send events correctly to the audit_reportertyler-ball2014-12-171-10/+7
|