Sha256: 9dc27c03d8a6e3832f2b0bd61aa576b75a99e9acce37308abff193e0d7b28182

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

if ARGV[0] && ARGV[0] == 'server'[0, ARGV[0].size] && ARGV[1] !~ /^\w+/
  server = Rack::Handler::DEFAULT.find do |s|
    begin
      require s
      true
    rescue LoadError
      false
    end
  end

  ARGV.insert(1, server)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-handlers-0.7.3 lib/rack/handler/rails-server.rb