Class: Buildkite::Builder::TemplateManager
- Inherits:
-
Object
- Object
- Buildkite::Builder::TemplateManager
- Defined in:
- lib/buildkite/builder/template_manager.rb
Instance Method Summary collapse
- #find(name) ⇒ Object
-
#initialize(root) ⇒ TemplateManager
constructor
A new instance of TemplateManager.
Constructor Details
Instance Method Details
#find(name) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/buildkite/builder/template_manager.rb', line 12 def find(name) return unless name unless definition = @templates[name.to_s] raise ArgumentError, "Template not defined: #{name}" end definition end |