class Github::Repos::Downloads
def upload(*args)
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(*args) arguments(args, :required => [:resource, :filename]) response = Github::S3Uploader.new(resource, filename).send response.body end