lib/honeybadger_tasks.rb in honeybadger-1.10.3 vs lib/honeybadger_tasks.rb in honeybadger-1.11.0.beta1

- old
+ new

@@ -15,16 +15,16 @@ # # Returns true or false def self.deploy(opts = {}) api_key = opts.delete(:api_key) || Honeybadger.configuration.api_key unless api_key =~ /\S/ - puts "I don't seem to be configured with an API key. Please check your configuration." + $stderr.puts "I don't seem to be configured with an API key. Please check your configuration." return false end unless opts[:environment] =~ /\S/ - puts "I don't know to which environment you are deploying (use the TO=production option)." + $stderr.puts "I don't know to which environment you are deploying (use the TO=production option)." return false end dry_run = opts.delete(:dry_run) params = {} @@ -58,10 +58,10 @@ if Net::HTTPSuccess === response puts "Succesfully recorded deployment" return true else - puts response.body + $stderr.puts "Error recording deployment: #{response.class} -- #{response.body || 'no response'}" return false end end end end