Class: NoopHook

Inherits:
Oxidized::Hook show all
Defined in:
lib/oxidized/hook/noophook.rb

Instance Attribute Summary

Attributes inherited from Oxidized::Hook

#cfg

Instance Method Summary collapse

Methods inherited from Oxidized::Hook

#initialize, #log

Constructor Details

This class inherits a constructor from Oxidized::Hook

Instance Method Details

#run_hook(ctx) ⇒ Object



6
7
8
# File 'lib/oxidized/hook/noophook.rb', line 6

def run_hook ctx
  log "Run hook with context: #{ctx}"
end

#validate_cfg!Object



2
3
4
# File 'lib/oxidized/hook/noophook.rb', line 2

def validate_cfg!
  log "Validate config"
end