Module: GitHubBackup

Defined in:
lib/github/repos.rb,
lib/github-backup.rb,
lib/utils/options.rb

Defined Under Namespace

Modules: GitHub Classes: Options

Class Method Summary collapse

Class Method Details

.backupObject



20
21
22
23
24
25
26
# File 'lib/github-backup.rb', line 20

def backup
    GitHubBackup::Options.parse
    opts = GitHubBackup::Options.options

    GitHubBackup::GitHub.options = opts
    GitHubBackup::GitHub.backup_repos
end

.mainObject



15
16
17
18
# File 'lib/github-backup.rb', line 15

def main
    require_all
    backup
end

.require_allObject



9
10
11
12
13
# File 'lib/github-backup.rb', line 9

def require_all
    Dir[File.join(File.dirname(__FILE__), %W(** *.rb))].each do |f|
        require f unless f == File.expand_path(__FILE__)
    end
end