Skip to content

Instantly share code, notes, and snippets.

@keplersj
Created May 14, 2014 22:56
Show Gist options
  • Save keplersj/fa9b54296ec5a7d58321 to your computer and use it in GitHub Desktop.
Save keplersj/fa9b54296ec5a7d58321 to your computer and use it in GitHub Desktop.
require 'base64'
require 'json'
require 'net/http'
manifest = JSON.parse(IO.read('build/libs/manifest.json'))
req = Net::HTTP::Post.new('/builds.json', 'Content-Type' => 'application/json')
req['X-User-Email'] = ENV['HBD_EMAIL_PROD']
req['X-User-Token'] = ENV['HBD_TOKEN_PROD']
req.body = manifest.to_json
response = Net::HTTP.new('heisenbugdev.com').start do |http|
http.request(req)
end
puts response.body
puts response
@viliml
Copy link

viliml commented May 15, 2014

Any idea why the gradle thing isn't working, or how to automatically call this script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment