Sha256: c451f8d257da656136c2ee8d54d0857983a495a2ea931411a602ff30408f371d

Contents?: true

Size: 390 Bytes

Versions: 12

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Command
        def command(*values)
          return super if values.empty?

          values.flatten.each do |value|
            if value == :noop
              super('true')
            else
              super(value)
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
buildkite-builder-1.4.1 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.4.0 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.3.1 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.3.0 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.2.0 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.1.0 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0.beta.5 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0.beta.4 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0.beta.3 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0.beta.2 lib/buildkite/pipelines/helpers/command.rb
buildkite-builder-1.0.0.beta.1 lib/buildkite/pipelines/helpers/command.rb