Sha256: 3775d4ae3b5179ee319dcdbbff6d442f29e6f227c5f7c0f09de067632beb4189

Contents?: true

Size: 453 Bytes

Versions: 48

Compression:

Stored size: 453 Bytes

Contents

module Buildkite
  module Builder
    module Extensions
      class Notify < Extension
        def prepare
          context.data.notify = []
        end

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

Version data entries

48 entries across 48 versions & 1 rubygems

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