Sha256: 759b0c22b9b5366af7a03003626358d2a8361af8762c35cf8b534acbf5d5eb0b

Contents?: true

Size: 337 Bytes

Versions: 60

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Skip
        # A helper method to see if the step is skipped.
        # Skipped steps are `true` or a non-empty string.
        def skipped?
          get(:skip) != false && !get(:skip).to_s.empty?
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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