Class: Oxidized::HookManager::HookContext

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#commitrefObject

Returns the value of attribute commitref

Returns:

  • (Object)

    the current value of commitref



21
22
23
# File 'lib/oxidized/hook.rb', line 21

def commitref
  @commitref
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



21
22
23
# File 'lib/oxidized/hook.rb', line 21

def event
  @event
end

#jobObject

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



21
22
23
# File 'lib/oxidized/hook.rb', line 21

def job
  @job
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



21
22
23
# File 'lib/oxidized/hook.rb', line 21

def node
  @node
end