summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-05-13 14:14:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-05-13 14:14:04 -0700
commit96f8d9583c7f7e16efeac0c4fe085a83d83f5041 (patch)
tree2a0c80a5ad8b799ce790dc50e0cb1eaa5b7d8849 /.rubocop.yml
parent103c34b057bba9061c010b4a9836977e9a8dbb90 (diff)
downloadchef-lcg/better-handler-wiring.tar.gz
wire up chef handlers directly from librarieslcg/better-handler-wiring
smear just a little bit of minimal DSL wiring into the Chef::Report class so that classes can wire themselves up automatically as handlers. this also extends the Chef::Config[*_handler] arrays to take classes as well as instances. in the case of passing a class that is not a singleton, a new instance will be created when the report is run. it will obviously be difficult to pass any state into this instance. if the class that is passed supports calling `#instance` we assume it is a Singleton and get the instance and use that. this is to support other chef code grabbing/creating the singleton instance and poking it with data (probably configuring where the reporter goes and what creds it needs to publish and other stuff).
Diffstat (limited to '.rubocop.yml')
0 files changed, 0 insertions, 0 deletions