Merge branch '10538-trash-delete' closes #10538
[arvados.git] / services / api / script / crunch-dispatch.rb
1 #!/usr/bin/env ruby
2
3 dispatch_argv = []
4 ARGV.reject! do |arg|
5   dispatch_argv.push(arg) if /^--/ =~ arg
6 end
7
8 ENV["RAILS_ENV"] = ARGV[0] || ENV["RAILS_ENV"] || "development"
9 require File.dirname(__FILE__) + '/../config/boot'
10 require File.dirname(__FILE__) + '/../config/environment'
11 require './lib/crunch_dispatch.rb'
12
13 CrunchDispatch.new.run dispatch_argv