Skip to content

Instantly share code, notes, and snippets.

View ge's full-sized avatar

George Entenman ge

View GitHub Profile
@ge
ge / planter.rb
Last active August 29, 2015 14:14 — forked from ttscoff/planter.rb
#!/usr/bin/ruby
=begin
Planter v1.3
Brett Terpstra 2013
ruby script to create a directory structure from indented data.
Three ways to use it:
- Pipe indented (tabs or 2 spaces) text to the script
- e.g. `cat "mytemplate" | planter.rb
- Create template.tpl files in ~/.planter and call them by their base name