This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# ruby script to create a directory structure from indented data. | |
# Two ways to use it now: | |
# Pass it a path to a template file. | |
# p = planter.new | |
# p.plant(path/to/template.tpl) | |
# | |
# or just call it with a simple name and it will look in ~/.planter for a template that matches that name. | |
# You can put %%X%% variables into templates, where X is a number that corresponds to the index | |
# of the argument passed when planter is called. |