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
Set mongrel as default adapter unless other alternative options are 
specified

Signed-off-by: Michael D. Ivey <ivey@gweezlebur.com>
daikini (author)
Sun Mar 09 12:47:03 -0700 2008
ivey (committer)
Sun Mar 09 21:26:58 -0700 2008
commit  531253f3483dadd0124a435fd7c0c948b7173e89
tree    50e0a44025087a1f496603e97f848be1f34d1b6c
parent  e6fc6a076a8b1b8668304c8fbc91fd8b4128269d
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 #!/usr/bin/env ruby
0
 require "merb-core"
0
 
0
-unless ARGV.index('-a') || ARGV.index('-i')
0
+unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }
0
   ARGV.push *%w[-a mongrel]
0
 end
0
   

Comments

    No one has commented yet.