gem.gems.haml-3.1.1.extra.update_watch.rb Maven / Gradle / Ivy
require 'rubygems'
require 'sinatra'
require 'json'
set :port, 3123
set :environment, :production
enable :lock
Dir.chdir(File.dirname(__FILE__) + "/..")
post "/" do
puts "Recieved payload!"
puts "Rev: #{`git name-rev HEAD`.strip}"
system %{rake handle_update --trace REF=#{JSON.parse(params["payload"])["ref"].inspect}}
end
© 2015 - 2024 Weber Informatics LLC | Privacy Policy