# File lib/churn/calculator.rb, line 62 def remote_report if @churn_options.report_host puts "posting churn results to #{@churn_options.report_host}" data = {:name => @churn_options.name, :revision => @revisions.first, :data => self.to_h}.to_json RestClient.post @churn_options.report_host, {"results" => data}, :content_type => :json, :accept => :json end rescue Errno::ECONNREFUSED puts "error posting churn results connection refused to host: #{@churn_options.report_host}" end