Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kraigparkinson on github.
  • I am rigourjunkie (https://keybase.io/rigourjunkie) on keybase.
  • I have a public key ASB3lxGKqzfZOYPC5kNduFZWKz6ZtPOOYqPRiiPNs80trwo

To claim this, I am signing this object:

@kraigparkinson
kraigparkinson / planter.rb
Created March 27, 2017 21:20 — forked from ttscoff/planter.rb
Create directory trees from indented text input
#!/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