public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
merb-core / bin / merb
100755 13 lines (9 sloc) 0.228 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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