Skip to content

Instantly share code, notes, and snippets.

@zspencer
Forked from jonathanpenn/gist:1624505
Created January 17, 2012 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zspencer/1624513 to your computer and use it in GitHub Desktop.
Save zspencer/1624513 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'raptor'
class Posts
end
class Users
end
App = Raptor::App.new([Posts, Users])
App.run Port: 9000
module Raptor
class App
def run options
require 'rack'
Rack::Handler::WEBrick.run(app, options)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment