extra/update_watch.rb in haml-edge-2.1.26 vs extra/update_watch.rb in haml-edge-2.1.27
- old
+ new
@@ -4,13 +4,7 @@
set :port, 3123
set :environment, :production
Dir.chdir(File.dirname(__FILE__) + "/..")
post "/" do
- payload = JSON.parse(params["payload"])
-
- if payload["ref"] == "refs/heads/master"
- system("rake release_edge &> edge-gem-output.log")
- elsif payload["ref"] =~ %r{^refs/heads/(haml|sass)-pages$}
- system("rake pages PROJ=#{$1}")
- end
+ system %{rake handle_update REF=#{JSON.parse(params["payload"])["ref"].inspect}}
end