Skip to content

Instantly share code, notes, and snippets.

@imarzi
imarzi / octopus.rb
Created June 30, 2011 20:01
octopus gist
require 'rubygems'
require 'goliath'
require 'em-synchrony'
require 'em-synchrony/em-http'
class Octopus < Goliath::API
use Goliath::Rack::Params
use Goliath::Rack::Heartbeat
use Goliath::Rack::Validation::RequestMethod, %w(GET POST HEAD)