Sha256: 4c0711de2cfa1d280c10d84f5ad49f679cc54277818a7e6612cd75ea03606012
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module Buildkite module Builder class TemplateRegistry def initialize(root) @templates = {} Loaders::Templates.load(root).each do |name, asset| @templates[name.to_s] = asset end end def find(name) return unless name unless definition = @templates[name.to_s] raise ArgumentError, "Template not defined: #{name}" end definition end def to_definition # No-op end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
buildkite-builder-2.0.0.beta2 | lib/buildkite/builder/template_registry.rb |
buildkite-builder-2.0.0.beta1 | lib/buildkite/builder/template_registry.rb |