# File addon/buildr/jetty.rb, line 166 def undeploy(url) use.invoke uri = URI.parse(url) Net::HTTP.start(uri.host, uri.port) do |http| response = http.request_post("/buildr/undeploy", "path=#{uri.path}") if Net::HTTPOK === response && response.body =~ /Undeployed/ true else fail "Deployment failed: #{response}" end end end