Sha256: 087a5bbb9b83e7619da520ced9f1646d05ddbaab205be266e68d51af79becc5c

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

#!/usr/bin/env ruby -wKU
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require "cruise_status"

unless ARGV.size == 1
  $stderr.puts <<-EOS
  cruisestatus: RSS feed url required.
  Usage: cruisestatus CRUISE_RB_RSS_URL
  
    Reads the feed at CRUISE_RB_RSS_URL and reports if the build[s] passed.
  
  Example: cruisestatus http://my.cruiseserver.com/projects.rss
  
  EOS
  exit 1
end

status = CruiseStatus.new ARGV.first

unless status.pass?
  puts "FAIL: #{status.failures.join( ', ' )}"
  exit 1
else
  puts "OK"
  exit 0
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cruisestatus-1.0.0 bin/cruisestatus