Sha256: 3fe310cc0c776368182c5f468cd3033f80e843cdd696780118e7c2fc0e8e8651

Contents?: true

Size: 508 Bytes

Versions: 16

Compression:

Stored size: 508 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
          root.join(MANIFESTS_PATH)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
buildkite-builder-2.4.1 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.4.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.3.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.2.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.1.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.0.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.0.0.beta4 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.0.0.beta3 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.0.0.beta2 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-2.0.0.beta1 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.4.1 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.4.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.3.1 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.3.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.2.0 lib/buildkite/builder/loaders/manifests.rb
buildkite-builder-1.1.0 lib/buildkite/builder/loaders/manifests.rb