lib/cogy/capistrano/cogy.rake in cogy-0.5.0 vs lib/cogy/capistrano/cogy.rake in cogy-0.5.1

- old
+ new

@@ -4,14 +4,14 @@ require "net/http" require "timeout" require "json" trigger_url = fetch(:cogy_release_trigger_url) - cogy_endpoint = Cogy.cogy_endpoint + cogy_endpoint = fetch(:cogy_endpoint) begin raise ":cogy_release_trigger_url must be set" if trigger_url.nil? - raise "Cogy.cogy_endpoint must be set" if cogy_endpoint.nil? + raise ":cogy_endpoint must be set" if cogy_endpoint.nil? Timeout.timeout(fetch(:cogy_trigger_timeout) || 7) do url = URI(trigger_url) res = Net::HTTP.post_form(url, url: cogy_endpoint)