Method: Slather::CoverageService::Coveralls#post
- Defined in:
- lib/slather/coverage_service/coveralls.rb
#post ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/slather/coverage_service/coveralls.rb', line 170 def post f = File.open('coveralls_json_file', 'w+') begin f.write(coveralls_coverage_data) f.close `curl -s --form json_file=@#{f.path} #{coveralls_api_jobs_path}` rescue StandardError => e FileUtils.rm(f) raise e end FileUtils.rm(f) end |