Class: Oxidized::Hook
- Inherits:
-
Object
- Object
- Oxidized::Hook
- Defined in:
- lib/oxidized/hook.rb
Overview
Hook abstract base class
Direct Known Subclasses
AwsSns, CiscoSparkDiff, Exec, GithubRepo, NoopHook, SlackDiff, XMPPDiff
Instance Attribute Summary collapse
-
#cfg ⇒ Object
Returns the value of attribute cfg.
Instance Method Summary collapse
Instance Attribute Details
#cfg ⇒ Object
Returns the value of attribute cfg.
68 69 70 |
# File 'lib/oxidized/hook.rb', line 68 def cfg @cfg end |
Instance Method Details
#log(msg, level = :info) ⇒ Object
79 80 81 |
# File 'lib/oxidized/hook.rb', line 79 def log(msg, level = :info) Oxidized.logger.send(level, "#{self.class.name}: #{msg}") end |
#run_hook(_ctx) ⇒ Object
75 76 77 |
# File 'lib/oxidized/hook.rb', line 75 def run_hook(_ctx) raise NotImplementedError end |