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