Class: GithubRipper

Inherits:
Object
  • Object
show all
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

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(options = {})
    # The following is to force github-lister-core to only retun repo slugs
    options[:use_slugs] = true
    options[:base_dir] = "#{File.expand_path('~')}/Downloads/Repos" unless get_option(options, :base_dir)

    repos = get_repo_list(options)
    results = rip_repos(options, repos)

    results, repo_count, error_count = process_results(results, options)
    draw_report(results, repo_count, error_count, options)
end