Do not blow up in crunch-dispatch.rb: do not pass --jobs and --pipelines
authorWard Vandewege <ward@curoverse.com>
Mon, 25 Aug 2014 15:39:05 +0000 (11:39 -0400)
committerWard Vandewege <ward@curoverse.com>
Mon, 25 Aug 2014 15:39:05 +0000 (11:39 -0400)
arguments to Rails.

no issue #

services/api/script/crunch-dispatch.rb

index 33f53692bceee9505a5c303fd7c90bdff5f04f54..bb7ce7e12dee7efe70ceeff06d506c1c18b23392 100755 (executable)
@@ -17,6 +17,8 @@ if not ($options[:jobs] or $options[:pipelines])
   abort "Nothing to do. Please specify at least one of: --jobs, --pipelines."
 end
 
+ARGV.reject! { |a| a =~ /--jobs|--pipelines/ }
+
 $warned = {}
 $signal = {}
 %w{TERM INT}.each do |sig|