summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Adding first round of formatter integration - STDOUT doc formattertyler-ball2014-12-171-5/+22
|
* Creating our own example group class to simplify adding examples to the spec ↵tyler-ball2014-12-171-0/+16
| | | | runner
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-1/+1
|
* Add ability to stream (and indent) command outputJohn Keiser2014-04-302-0/+43
|
* compute elapsed time without altering public apiRanjib Dey2013-11-061-2/+2
|
* pass elapsed time along with node/exception in event hanldersRanjib Dey2013-11-061-2/+2
|
* Normalize whitespace on all filesSeth Vargo2013-09-262-2/+2
|
* Adding the run_started callbackPrajaktaPurohit2013-04-241-0/+3
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-302-0/+353
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!