Class: Oxidized::HookManager::HookContext
- Inherits:
-
Struct
- Object
- Struct
- Oxidized::HookManager::HookContext
- Defined in:
- lib/oxidized/hook.rb
Overview
HookContext is passed to each hook. It always carries the event name. The keyword_init: true argument forces keyword-argument initialization.
Instance Attribute Summary collapse
-
#commitref ⇒ Object
Returns the value of attribute commitref.
-
#context ⇒ Object
Returns the value of attribute context.
-
#event ⇒ Object
Returns the value of attribute event.
-
#job ⇒ Object
Returns the value of attribute job.
-
#node ⇒ Object
Returns the value of attribute node.
-
#node_raw ⇒ Object
Returns the value of attribute node_raw.
Instance Attribute Details
#commitref ⇒ Object
Returns the value of attribute commitref
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def commitref @commitref end |
#context ⇒ Object
Returns the value of attribute context
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def context @context end |
#event ⇒ Object
Returns the value of attribute event
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def event @event end |
#job ⇒ Object
Returns the value of attribute job
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def job @job end |
#node ⇒ Object
Returns the value of attribute node
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def node @node end |
#node_raw ⇒ Object
Returns the value of attribute node_raw
21 22 23 |
# File 'lib/oxidized/hook.rb', line 21 def node_raw @node_raw end |