Class: GhBackup::CLI
- Inherits:
-
Thor
- Object
- Thor
- GhBackup::CLI
- Defined in:
- lib/gh_backup.rb
Overview
Backup CLI
Instance Method Summary collapse
- #all(org, user, pass) ⇒ Object
- #clone(account, user, pass, repo) ⇒ Object
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #list(account, user, pass) ⇒ Object
- #user ⇒ Object
- #yml(account, user, pass) ⇒ Object
Constructor Details
Instance Method Details
#all(org, user, pass) ⇒ Object
132 133 134 |
# File 'lib/gh_backup.rb', line 132 def all(org, user, pass) @backup.clone_org_repos(org, user, pass) end |
#clone(account, user, pass, repo) ⇒ Object
122 123 124 |
# File 'lib/gh_backup.rb', line 122 def clone(account, user, pass, repo) @backup.clone_repo(user, pass, account, repo) end |
#list(account, user, pass) ⇒ Object
137 138 139 |
# File 'lib/gh_backup.rb', line 137 def list(account, user, pass) puts @backup.list_org_repos(account, user, pass) end |
#user ⇒ Object
116 117 118 119 |
# File 'lib/gh_backup.rb', line 116 def user puts .inspect puts .username end |
#yml(account, user, pass) ⇒ Object
127 128 129 |
# File 'lib/gh_backup.rb', line 127 def yml(account, user, pass) @backup.backup(account, user, pass) end |