marcocampana/dottor — pull request #1 by wjlroe (2012-09-10 14:57:05+00:00)
Title: Relative pathnames as targets

This pull request adds the ability to specify relative paths as the targets in the config.

This would allow the same profile to be used between machines even if they location of the user's home directory differs. Especially useful you have /Users/blah in some places and /home/blah in other places. Or different user names on other servers that you don't control.

A spec has been added for the Dottor object, testing just the `target` accessor. This access uses File.expand_path to resolve things such as `~` for the user's home directory and `~another` to refer to a different home directory, for e.g.

I have also added a sample dottor_rules config file, which I have put a few permutations of targets in to illustrate how it can be used.