Class: Texas::Build::Task::RunMasterTemplate
- Defined in:
- lib/texas/build/task/run_master_template.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Texas::Build::Task::Base
Instance Method Details
#find_master_template(possible_templates) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/texas/build/task/run_master_template.rb', line 6 def find_master_template(possible_templates) regexes = Template.handlers.keys valid_master_templates = possible_templates.select do |f| regexes.any? { |regex| f =~ regex } end valid_master_templates.first end |