Precommit Git hook for puppet syntax check written in ruby
Rake Default task is there to Install Gems & Run Tests
$rake
To install pre-commit hook, execute
$rake install_precommit_hook
- Refactor Tests
2) Add check for style with puppet-lint .
3) update rake :install_precommit_hook to take path of another repository as a arg.
e.g. $rake install_precommit_hook_to[/this/puppet/module/]
/this/puppet/module/ must be the root git directory
- Pretty print errors
#Note
This project is not to replace the easier shell/bash script availabe for such checks but, solely to improve on the ruby skills and, get hands on with BDD,Cucumber & RSpec.
I will try to update this project as frequent as possible with better Tests , ruby codes