Sha256: 6847696b42d78ed4f89105a81d83154aafe301e2d9216157be4f884e63f1c824

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

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

      def initialize(step, **args)
        @step = step
        @args = args
      end

      def pipeline
        step.pipeline
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
buildkite-builder-1.2.0 lib/buildkite/pipelines/step_context.rb
buildkite-builder-1.1.0 lib/buildkite/pipelines/step_context.rb