Sha256: 2a4874da4ed759e4a262e6c05554d117adc978de8b340c83ca531acdaa62cd03

Contents?: true

Size: 364 Bytes

Versions: 61

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Block
        def block(*args, emoji: nil)
          if emoji
            emoji = Array(emoji).map { |name| ":#{name}:" }.join
            args[0] = [emoji, args.first].compact.join(' ')
          end

          super(*args)
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
buildkite-builder-1.0.0.beta.1 lib/buildkite/pipelines/helpers/block.rb