Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created December 18, 2012 00:03
Show Gist options
  • Save havenwood/4323599 to your computer and use it in GitHub Desktop.
Save havenwood/4323599 to your computer and use it in GitHub Desktop.
pewter_tao #ruby irc
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