Skip to content

Commit

Permalink
Make Thor actually exit non-zero when a validation error occurs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian C. Dunn committed Dec 5, 2013
1 parent 480bc07 commit a4a3599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Thorfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class Packer < Thor
templates = Dir.glob("*.json")
templates.each do |template|
puts "#{template}"
system "packer validate #{template}"
unless system "packer validate #{template}"
fail "Validation failed!"
end
puts "\n"
end
end
Expand Down

0 comments on commit a4a3599

Please sign in to comment.