Sha256: b0de988e037c22e14ea3bd179aba292816ea993b76f4dcfdcc2331a18abae0a4
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module Errplane class Deployment def announce http = Net::HTTP.new(Errplane.configuration.api_host, "80") url = "/api/v1/deployments" data = {} response = begin http.post(url, data) rescue Exception => e # e end case response when Net::HTTPSuccess # Success else # Failure end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.1.9 | lib/errplane/deployment.rb |
errplane-0.1.8 | lib/errplane/deployment.rb |