Class: GitHub::GitCommand

Inherits:
Command show all
Defined in:
lib/github/command.rb

Instance Method Summary collapse

Methods inherited from Command

#call, #current_user?, #die, #git, #git_exec, #github_token, #github_user, #helper, #http_post, #options, #pgit, #run, #sh, #shell_user

Constructor Details

#initialize(name) ⇒ GitCommand

Returns a new instance of GitCommand.



129
130
131
# File 'lib/github/command.rb', line 129

def initialize(name)
  @name = name
end

Instance Method Details

#command(*args) ⇒ Object



133
134
135
# File 'lib/github/command.rb', line 133

def command(*args)
  git_exec [ @name, args ]
end