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
#!/usr/bin/env ruby | |
require 'open3' | |
# Returns true if all files are EOF | |
# | |
def all_eof(files) | |
files.find { |f| !f.eof }.nil? | |
end |
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 |