Sha256: e43dc7eda654629834c2959492ff401082deed280c77a1641d4ea9b22c4196ef

Contents?: true

Size: 443 Bytes

Versions: 49

Compression:

Stored size: 443 Bytes

Contents

module Buildkite
  module Builder
    module Extensions
      class Env < Extension
        def prepare
          context.data.env = {}
        end

        dsl do
          def env(*args)
            if args.first.is_a?(Hash)
              context.data.env.merge!(args.first.transform_keys(&:to_s))
            else
              raise ArgumentError, 'value must be hash'
            end
          end
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
buildkite-builder-4.16.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.15.1 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.15.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.14.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.13.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.12.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.11.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.10.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.8.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.7.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.6.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.5.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.4.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.3.0 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.5 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.4 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.3 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.2 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.1 lib/buildkite/builder/extensions/env.rb
buildkite-builder-4.2.0 lib/buildkite/builder/extensions/env.rb