Sha256: 1d5a31acc226a49a676f9fadef91a7b5eb76d4054ff68f5c0c27424bed9e6d8b

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    class StepContext
      attr_reader :step
      attr_reader :args
      attr_reader :data

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

      def pipeline
        step.pipeline
      end

      def [](key)
        args[key]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
buildkite-builder-1.4.1 lib/buildkite/pipelines/step_context.rb
buildkite-builder-1.4.0 lib/buildkite/pipelines/step_context.rb
buildkite-builder-1.3.1 lib/buildkite/pipelines/step_context.rb
buildkite-builder-1.3.0 lib/buildkite/pipelines/step_context.rb