Class: GitHub::GitCommand
Instance Method Summary collapse
- #command(*args) ⇒ Object
-
#initialize(name) ⇒ GitCommand
constructor
A new instance of GitCommand.
Methods inherited from Command
#call, #current_user?, #die, #git, #git_exec, #github_token, #github_user, #helper, #highline, #options, #pgit, #request_github_credentials, #run, #sh, #shell_user
Constructor Details
#initialize(name) ⇒ GitCommand
Returns a new instance of GitCommand.
153 154 155 |
# File 'lib/github/command.rb', line 153 def initialize(name) @name = name end |
Instance Method Details
#command(*args) ⇒ Object
157 158 159 |
# File 'lib/github/command.rb', line 157 def command(*args) git_exec [ @name, args ] end |