Skip to content
twe4ked edited this page Mar 2, 2013 · 12 revisions

Filters allow you to run specified files through arbitrary commands at build time.

Examples

ERB

Setting name and email with environment variables in gitconfig.erb.

fresh config/gitconfig.erb --file=~/.gitconfig --filter=erb

[user]
name=<%= ENV["NAME"] %>
email=<%= ENV["EMAIL"] %>

GnuPG

Decrypting files with GnuPG.

fresh encrypted_file.asc --filter=gpg

Clone this wiki locally