Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fbf53b579b
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.506 kb
require 'github_cloner/github_helper'
class Cloner
include Github
def initialize(options)
@github_uname = options[:username]
@mode = options[:method]
@path = options[:path]
@timeout = options[:timeout]
@repos = options[:repos]
end
def clone
Github::get_repos(@github_uname, @mode, @timeout).each {|repo| system("git clone #{repo[:link]} #{@path}/#{repo[:inactive]}/#{repo[:name]}") if @repos.include? repo[:name] or @repos.empty? }
end
end
Jump to Line
Something went wrong with that request. Please try again.