Last active
October 14, 2015 01:54
-
-
Save horie1024/91310c66646e6136f900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = URI.parse(pre_signed_url) | |
apk = File.open("YOUR_APK_PATH", "rb").read | |
Net::HTTP.start(url.host) do |http| | |
http.send_request("PUT", url.request_uri, apk, {"content-type" => "application/octet-stream"}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment