summaryrefslogtreecommitdiff
path: root/lib/oxidized/hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/hook.rb')
-rw-r--r--lib/oxidized/hook.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/hook.rb b/lib/oxidized/hook.rb
index 2763c4f..7f1942b 100644
--- a/lib/oxidized/hook.rb
+++ b/lib/oxidized/hook.rb
@@ -19,7 +19,7 @@ class HookManager
# RegisteredHook is a container for a Hook instance
class RegisteredHook < Struct.new(:name, :hook); end
- Events = [
+ Events = [
:node_success,
:node_fail,
:post_store,
@@ -49,7 +49,7 @@ class HookManager
Log.debug "Hook #{name.inspect} registered #{hook.class} for event #{event.inspect}"
end
- def handle event, **ctx_params
+ def handle event, ctx_params={}
ctx = HookContext.new ctx_params
ctx.event = event