1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/extra/update_watch.rb
2009-06-17 21:46:25 -07:00

10 lines
240 B
Ruby

require 'rubygems'
require 'sinatra'
require 'json'
set :port, 3123
set :environment, :production
Dir.chdir(File.dirname(__FILE__) + "/..")
post "/" do
system %{rake handle_update REF=#{JSON.parse(params["payload"])["ref"].inspect}}
end