Class: Oxidized::HookManager::HookContext

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

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

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



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

def context
  @context
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

#node_rawObject

Returns the value of attribute node_raw

Returns:

  • (Object)

    the current value of node_raw



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

def node_raw
  @node_raw
end