Class: GithubRipper
- Inherits:
-
Object
- Object
- GithubRipper
- Defined in:
- lib/github-ripper.rb,
lib/github-ripper/git.rb,
lib/github-ripper/repos.rb,
lib/github-ripper/table.rb,
lib/github-ripper/utils.rb,
lib/github-ripper/report.rb,
lib/github-ripper/version.rb,
lib/github-ripper/wrapper.rb,
lib/github-ripper/function-maps.rb
Overview
Class docs
Constant Summary collapse
- VERSION =
'0.1.3'.freeze
- FUNCTION_MAP =
Lookup the github-lister-core function from the options given
{ :user_repos => 'user_repos', :org_repos => 'org_repos', :org_members_repos => 'org_members_repos', :all_repos => 'all_repos' }.freeze
Class Method Summary collapse
-
.rip(options = {}) ⇒ Object
Do something …
Class Method Details
.rip(options = {}) ⇒ Object
Do something …
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/github-ripper.rb', line 25 def rip( = {}) # The following is to force github-lister-core to only retun repo slugs [:use_slugs] = true [:base_dir] = "#{File.('~')}/Downloads/Repos" unless get_option(, :base_dir) repos = get_repo_list() results = rip_repos(, repos) results, repo_count, error_count = process_results(results, ) draw_report(results, repo_count, error_count, ) end |