Skip to content

Instantly share code, notes, and snippets.

@ungoldman
Created August 20, 2013 21:34
Show Gist options
  • Save ungoldman/6287634 to your computer and use it in GitHub Desktop.
Save ungoldman/6287634 to your computer and use it in GitHub Desktop.
learn you an octokit!
# make sure octokit and highline are actually installed first
require 'octokit'
require 'highline/import'
login = ask("Enter your login: ") { |q| q.echo = false }
pass = ask("Enter your pass: ") { |q| q.echo = false }
@client = Octokit::Client.new(:login => login, :password => pass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment