Sha256: 18feb4e166aa211e8081fc464ad615154d55fa32b3c08b4ef9f0e42792444f0e
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 Bytes
Contents
module Rack module Adapter autoload :Rails, Ebb::LIBDIR + '/rack/adapter/rails' end end module Ebb class Runner class Rails < Runner def extra_options # defaults for ebb_rails @options.update( :environment => 'development', :port => 3000, # rails has a mutex lock around each request - threaded processing # will only slow things down :threaded_processing => false ) @parser.on("-e", "--env ENV", "Rails environment (default: development)") do |env| @options[:environment] = env end @parser.on("-c", "--chdir DIR", "RAILS_ROOT directory") do |c| @options[:root] = c end end def app(options) Rack::Adapter::Rails.new(options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ebb-0.1.0 | ruby_lib/ebb/runner/rails.rb |