Sha256: 9b7f2d93d1524fd2ae4bb247da3fbd82f312e854578f48d13944b10f93859702
Contents?: true
Size: 331 Bytes
Versions: 62
Compression:
Stored size: 331 Bytes
Contents
require 'rubygems' require 'sinatra' require 'json' set :port, 3124 set :environment, :production enable :lock Dir.chdir(File.dirname(__FILE__) + "/..") post "/" do puts "Received payload!" puts "Rev: #{`git name-rev HEAD`.strip}" system %{rake handle_update --trace REF=#{JSON.parse(params["payload"])["ref"].inspect}} end
Version data entries
62 entries across 61 versions & 6 rubygems