Sha256: 4c44217cddea9d7b6960ea6996bd40d102edac9bd905160c2eee0660a9fbf8f2

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Builder
    module Loaders
      class Manifests < Abstract
        MANIFESTS_PATH = Pathname.new('manifests').freeze

        def load
          return unless manifests_path.directory?

          manifests_path.children.map do |file|
            add(file.basename, Manifest.new(Buildkite::Builder.root, file.readlines))
          end
        end

        def manifests_path
          pipeline_path.join(MANIFESTS_PATH)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
buildkite-builder-1.0.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.0.0.beta.5 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.0.0.beta.4 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.0.0.beta.3 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.0.0.beta.2 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.0.0.beta.1 lib/buildkite/builder/loaders/manifests.rb