Created
December 18, 2012 00:03
-
-
Save havenwood/4323599 to your computer and use it in GitHub Desktop.
pewter_tao #ruby irc
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
def self.valid? script | |
func_to_output_exitcode("#{script.lang} #{script.flag} #{script.filename}", | |
{raise_on_failure: false}) | |
@not_a_success ||= [] | |
unless $?.success? | |
@not_a_success << script.filename | |
end | |
end | |
# Then at the end, outside the loop, you can do a | |
# not_a_success.each { |error| puts error } or whatev. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment