Sha256: 1252cb517fb2fdef36447b15865cca78b06b2239f022e98ca323c9de2f02609c

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

#!/usr/bin/env ruby

require 'git-ready'
require 'terminal-announce'

if ARGV.empty? || %w(-h --help help).include?(ARGV.first)
  Announce.info 'Syntax: git-ready <organization>'
  abort
end

organization, filter = ARGV.first(2)
username = GitHub.api.user[:login]

Announce.info "Forking all #{organization} repositories to #{username}"
repositories = GitHub.fork_all organization, filter

Announce.info "Cloning all forked repositories into #{Settings.workspace}"
Workspace.setup repositories

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-ready-0.9.8 bin/git-ready
git-ready-0.9.0 bin/git-ready