lib/github_cloner/github_cloner.rb in github-cloner-0.4.0 vs lib/github_cloner/github_cloner.rb in github-cloner-0.5.0

- old
+ new

@@ -70,12 +70,14 @@ if args[:group_by_user] output_path = [base_path, org_name, language, repo_name].join(File::SEPARATOR) else output_path = [base_path, language, org_name, repo_name].join(File::SEPARATOR) end - puts "Process #{i+1} of #{projects.size} : git clone git@github.com:#{[org_name, repo_name].join(File::SEPARATOR)}.git #{output_path}" + + puts "Process #{i+1} of #{projects.size} : git clone git@#{args[:repo_host]}:#{[org_name, repo_name].join(File::SEPARATOR)}.git #{output_path}" + if args[:clone_repos] - system("git clone git@github.com:#{[org_name, repo_name].join(File::SEPARATOR)}.git #{output_path} 2> /dev/null") + system("git clone git@#{args[:repo_host]}:#{[org_name, repo_name].join(File::SEPARATOR)}.git #{output_path} 2> /dev/null") end end end def repos_as_list(repos)