Last active
October 24, 2017 00:50
-
-
Save JakeTRogers/dd95d4ebbfdf7e6254a605df328f6726 to your computer and use it in GitHub Desktop.
puppet guard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notification :off | |
guard :shell do | |
watch %r{^(manifests|site\/(profile|role)\/manifests)\/(.+)\.pp$} do | |
system("pdk validate puppet") and system("pdk test unit") | |
end | |
watch %r{^(lib|site\/(profile|role)\/lib)\/(.+)\.rb$} do | |
system("pdk validate ruby") and system("pdk test unit") | |
end | |
watch %r{^spec\/(classes|defines|applications|functions|types|type_aliases|hosts)\/(.+)\.rb$} do | |
system("pdk validate ruby") and system("pdk test unit") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks David, thats a great suggestion.