notahat/tango — pull request #12 by ileitch (2012-02-16 19:08:08+00:00)
Title: Add ConfigFiles#template for easily opening a relative file.

Me again!

In my steps repo, I have a structure like this:

```
tango-steps/
runners/
god.rb
god/
init.sh.erb
````

I want to use the `write` helper from `ConfigFiles`, but figuring out the path to init.sh.erb is a little annoying.

`template` will return an open File handle to a file relative to the __FILE__ of the runner file. I can now call `write` like this:

```ruby
write('/etc/init.d/god', template('god/init.sh.erb'))
```