Class: Papa::Command::Git::Push
- Defined in:
- lib/papa/command/git/push.rb
Instance Attribute Summary
Attributes inherited from Base
#command, #exit_status, #silent, #stderr, #stdout
Instance Method Summary collapse
-
#initialize(remote, branch_name) ⇒ Push
constructor
A new instance of Push.
Methods inherited from Base
#cleanup, #failed?, #failure_message, #run, #success?
Constructor Details
#initialize(remote, branch_name) ⇒ Push
Returns a new instance of Push.
7 8 9 10 |
# File 'lib/papa/command/git/push.rb', line 7 def initialize(remote, branch_name) command = "git push #{remote} #{branch_name}" super(command) end |