Skip to content

dvadgama/puppet_git_precommit_hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet_git_precommit_hook

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

To Do

  1. 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 
  1. 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

About

Precommit Git hook for puppet syntax check written in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published