summaryrefslogtreecommitdiff
path: root/bin/chef-server
blob: 8b264ec5a721599adbba72c969b8ad38f3ad7263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
require "merb-core"

if ARGV[0] && ARGV[0] =~ /^[^-]/
  ARGV.push "-H"
end 

unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }
  ARGV.push *%w[-a mongrel]
end

Merb.start