crafterm/sprinkle — pull request #85 by koenpunt (2013-04-03 23:29:45+00:00)
Title: Tweaks and modifications

A summary of the changes:

- Added global option `:as_user` for all installers (`Sprinkle::Installers::Installer`) to run commands as specific user (`su -c '....' -s /bin/sh #{@options[:as_user]}`)
- Added `:sudo` as global option for all `Sprinkle::Installers::Installer` classes
- Updated `push_text` installer to support `:idempotent` for multiline strings
- Updated readability of the `push_text` and `replace_text` installers