Sinatra => Campfire
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
burn.rb
campfire.yml.example
config.ru
deps.rip

README.markdown

Burn

Burn is a Sinatra app that listens for POSTs and forwards the messages it receives to Campfire.

  1. Make a campfire.yml.
  2. Put it in the same directory as burn.rb.
  3. Run it: $ ruby burn.rb.
  4. Hit it: curl -F message='Hi mom!' http://localhost:4567

You can hit it from Ruby easily, too:

require 'net/http'
Net::HTTP.post_form(URI.parse("http://localhost:4949/"), 'message' => "Hi dad!")

Chris Wanstrath // chris@ozmm.org