Skip to content

Instantly share code, notes, and snippets.

@loganhasson
Last active August 29, 2015 14:05
Show Gist options
  • Save loganhasson/e4791b4abe2dc75bc82f to your computer and use it in GitHub Desktop.
Save loganhasson/e4791b4abe2dc75bc82f to your computer and use it in GitHub Desktop.
require 'octokit'
client = Octokit::Client.new(access_token: ENV['ACCESS_TOKEN'])
client.login
client.add_deploy_key(ENV['REPO'], 'shipment@github', File.read('/root/.ssh/id_rsa.pub'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment