Method: Template::Spec.spec_path_for_identifier
- Defined in:
- lib/template/spec.rb
.spec_path_for_identifier(identifier) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/template/spec.rb', line 22 def self.spec_path_for_identifier(identifier) specs = specs_matching_identifier identifier raise "Unknown template: #{identifier}. Use `klipp template list` to see your options" unless specs && specs.count > 0 raise "Found multiple templates named #{identifier}, use a full template identifier to pick one. Run `klipp template list` to see your options" if specs && specs.count > 1 specs.first end |