Sha256: 25f47ff1be620e958e34f704e997d0ec19432733472fdafcb2befc13faa6008c

Contents?: true

Size: 610 Bytes

Versions: 10

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Builder
    module Commands
      class Files < Abstract
        private

        self.description = 'Outputs files that match the specified manifest.'

        def run
          pipeline, manifest = ARGV.first.to_s.split('/')
          if !pipeline || !manifest
            raise 'You must specify a pipeline and a manifest (eg "mypipeline/mymanifest")'
          end

          manifests = Loaders::Manifests.load(pipeline)
          manifests[manifest].files.each do |file|
            puts file
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
buildkite-builder-1.3.1 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.3.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.2.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.1.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0.beta.5 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0.beta.4 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0.beta.3 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0.beta.2 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.0.0.beta.1 lib/buildkite/builder/commands/files.rb