Last active
February 18, 2016 10:30
-
-
Save jbarber/9e997757653a46275440 to your computer and use it in GitHub Desktop.
List all repos for an organisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'octokit' | |
# ~/.netrc contains: | |
# machine api.github.com | |
# login [email protected] | |
# password $GITHUBAPIKEY | |
Octokit.auto_paginate = true | |
client = Octokit::Client.new(:netrc => true) | |
client.org_repos('rainforestapp', {:type => 'all'}).collect(&:ssh_url).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment