Sha256: 3775d4ae3b5179ee319dcdbbff6d442f29e6f227c5f7c0f09de067632beb4189

Contents?: true

Size: 453 Bytes

Versions: 47

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

47 entries across 47 versions & 1 rubygems

Version Path
buildkite-builder-4.1.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-4.0.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.9.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.8.3 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.8.2 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.8.1 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.8.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.7.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.6.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.5.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.4.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.3.2 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.3.1 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.3.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.2.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.1.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-3.0.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-2.4.1 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-2.4.0 lib/buildkite/builder/extensions/notify.rb
buildkite-builder-2.3.0 lib/buildkite/builder/extensions/notify.rb