diff options
Diffstat (limited to 'lib/oxidized/hook/noophook.rb')
-rw-r--r-- | lib/oxidized/hook/noophook.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/oxidized/hook/noophook.rb b/lib/oxidized/hook/noophook.rb new file mode 100644 index 0000000..d4673ba --- /dev/null +++ b/lib/oxidized/hook/noophook.rb @@ -0,0 +1,9 @@ +class NoopHook < Oxidized::Hook + def validate_cfg! + log "Validate config" + end + + def run_hook ctx + log "Run hook with context: #{ctx}" + end +end |