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 can contain anything related to the event in question. At least it contains the event name The argument keyword_init: true is needed for ruby < 3.2 and can be dropped with the support of ruby 3.1
Instance Attribute Summary collapse
-
#commitref ⇒ Object
Returns the value of attribute commitref.
-
#event ⇒ Object
Returns the value of attribute event.
-
#job ⇒ Object
Returns the value of attribute job.
-
#node ⇒ Object
Returns the value of attribute node.
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 |
#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 |