Sha256: fb93f53ae45d13bdbddc0087afad48c33cd8aeea73a2a013c6f96fd4a164b052

Contents?: true

Size: 573 Bytes

Versions: 12

Compression:

Stored size: 573 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
          manifests = Loaders::Manifests.load(pipeline_path)
          puts manifests[options[:manifest]].files.sort.join("\n")
        end

        def parse_options(opts)
          opts.on('--manifest MANIFEST', 'The manifest to use') do |manifest|
            options[:manifest] = manifest
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
buildkite-builder-2.4.1 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.4.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.3.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.2.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.1.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.0.0 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.0.0.beta4 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.0.0.beta3 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.0.0.beta2 lib/buildkite/builder/commands/files.rb
buildkite-builder-2.0.0.beta1 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.4.1 lib/buildkite/builder/commands/files.rb
buildkite-builder-1.4.0 lib/buildkite/builder/commands/files.rb