Sha256: b9dfacc321dde7ceb2240d0bd546eb325d495ade1abeb8db37a7ad12e5d3457f
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
#!/usr/bin/env ruby # This file was generated by 'merb-gen scripts' and # is identical to the executables merb-core/bin/merb # Try to use minigems instead of the fully rubygems library begin require 'minigems' rescue LoadError require 'rubygems' end # Load script helpers if available - either local or system-wide. begin # Figure out the merb root - defaults to the current directory. root_key = %w[-m --merb-root].detect { |o| ARGV.index(o) } root = ARGV[ARGV.index(root_key) + 1] if root_key __DIR__ = root.to_a.empty? ? Dir.getwd : root # Piggyback on the merb-core rubygem for initial setup scripts. # Requiring it doesn't affect the local gem version of merb-core # we might effectively want to load here after. if merb_core_dir = Dir[File.join(__DIR__, 'gems', 'gems', 'merb-core-*')].last require File.join(merb_core_dir, 'lib', 'merb-core', 'script') else require 'merb-core/script' end # Now setup local gems to be incorporated into the normal loaded gems. # Unless the option --no-frozen is given, local gems are enabled. include Merb::ScriptHelpers setup_local_gems!(__DIR__) rescue LoadError end require 'merb-core' ARGV.push '-H' if ARGV[0] && ARGV[0] =~ /^[^-]/ unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) } ARGV.push *%w[-a mongrel] end Merb.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-gen-0.9.6 | lib/generators/templates/component/scripts/script/merb |