bin/cruisestatus in cruisestatus-1.0.0 vs bin/cruisestatus in cruisestatus-1.1.0

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby -wKU $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') -require "cruise_status" +require "cruisestatus" unless ARGV.size == 1 $stderr.puts <<-EOS cruisestatus: RSS feed url required. Usage: cruisestatus CRUISE_RB_RSS_URL @@ -16,11 +16,10 @@ end status = CruiseStatus.new ARGV.first unless status.pass? - puts "FAIL: #{status.failures.join( ', ' )}" - exit 1 + abort "FAIL: #{status.failures.join( ', ' )}" else puts "OK" exit 0 end