This project is archived and is in readonly mode.
Make template path available in TemplateRunner
-
CancelProfileIsBroken
- State changed from new to invalid
You can just refer to the template within your template as template (wow, clear as mud)...here's a bit of code where I grab a config file that's sitting in the same folder as the template:
template_path = File.expand_path(File.dirname(template), File.join(root,'..')) config_file = File.join(template_path, "config.yml")Somewhat convoluted to ensure it works whether the templaet is specified by relative or absolute path when it's invoked.
If this isn't what you're after, feel free to reopen with more information.