Class: Buildkite::Pipelines::StepContext

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/pipelines/step_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step, **args) ⇒ StepContext

Returns a new instance of StepContext.



10
11
12
13
14
# File 'lib/buildkite/pipelines/step_context.rb', line 10

def initialize(step, **args)
  @step = step
  @args = args
  @data = {}
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



7
8
9
# File 'lib/buildkite/pipelines/step_context.rb', line 7

def args
  @args
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/buildkite/pipelines/step_context.rb', line 8

def data
  @data
end

#stepObject (readonly)

Returns the value of attribute step.



6
7
8
# File 'lib/buildkite/pipelines/step_context.rb', line 6

def step
  @step
end

Instance Method Details

#[](key) ⇒ Object



16
17
18
# File 'lib/buildkite/pipelines/step_context.rb', line 16

def [](key)
  args[key]
end