Sha256: 017a74323c203fa8e9886a5c52896d6178ff65b005a3450dcb4a7508b3f2722a

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Builder
    module Commands
      class Run < Abstract
        private

        self.description = 'Builds and uploads the generated pipeline.'

        def run
          unless pipeline
            raise 'You must specify a pipeline'
          end

          Builder::Runner.run
        end

        def pipeline
          @pipeline ||= ARGV.last || begin
            if available_pipelines.one?
              available_pipelines.first
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildkite-builder-1.0.0.beta.3 lib/buildkite/builder/commands/run.rb