Sha256: 88d841e6726053e20328d3e058ab0f02fefee7f186b40b7304486d99dc7f4d78
Contents?: true
Size: 750 Bytes
Versions: 18
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module Buildkite module Builder module Loaders class Templates < Abstract include Definition::Helper TEMPLATES_PATH = Pathname.new('templates').freeze def load load_from_path(global_path) load_from_path(pipeline_path) end private def load_from_path(path) return unless path.directory? path.children.sort.each do |file| add(file.basename('.rb'), load_definition(file, Definition::Template)) end end def pipeline_path root.join(TEMPLATES_PATH) end def global_path buildkite_path.join(TEMPLATES_PATH) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems