class Github::Repos::Downloads
def upload(resource, filename)
github.repos.downloads.upload resource, '/users/octokit/image.jpg'
resource = github.repos.downloads.create 'user-name', 'repo-name'
= Examples
* :filename - Required filename, a path to a file location.
* resource - Required resource of the create_download call.
= Parameters
the response object as an argument to upload method.
Github::Repos::Downloads#create_download. This can be done by passing
Upload a file to Amazon, using the reponse instance from
def upload(resource, filename) _validate_presence_of resource, filename response = Github::S3Uploader.new(resource, filename).send response.body end