Sha256: 8b3f1814a38ab01bd7b9987f20349141ab7681627b23981a499d77a947bca713
Contents?: true
Size: 842 Bytes
Versions: 6
Compression:
Stored size: 842 Bytes
Contents
# frozen_string_literal: true require 'pathname' module Buildkite module Builder module Loaders class Processors < Abstract PROCESSORS_PATH = Pathname.new('processors').freeze def load load_processors_from_path(global_processors_path) load_processors_from_path(pipeline_processors_path) end private def load_processors_from_path(path) return unless path.directory? path.children.map do |file| required_status = require(file) add(file.basename, { required: required_status }) end end def global_processors_path buildkite_path.join(PROCESSORS_PATH) end def pipeline_processors_path pipeline_path.join(PROCESSORS_PATH) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems