Skip to content

Instantly share code, notes, and snippets.

@jcwx
Created March 5, 2013 13:07
Show Gist options
  • Save jcwx/5090187 to your computer and use it in GitHub Desktop.
Save jcwx/5090187 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# vim: set ts=2 sw=2 ai et:
require 'rubygems' # kludge for older systems, such as rhel6
require 'gh'
require 'erb'
require 'net/smtp'
require 'socket'
stack = GH::Stack.new do
use GH::Normalizer
use GH::Cache
use GH::Pagination
end
options = {
:username => ['xxxx'],
:password => ['xxxx'],
}
gh = stack.build(options)
puts gh['user']['name']
# get list of repos
repos = gh['orgs/iseoptions/repos'].map {|r| r['name']}
repos.each do |repo|
puts "#{repo}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment