Class: Papa::Command::Git::BranchDelete

Inherits:
Base
  • Object
show all
Defined in:
lib/papa/command/git/branch_delete.rb

Instance Attribute Summary

Attributes inherited from Base

#command, #exit_status, #silent, #stderr, #stdout

Instance Method Summary collapse

Methods inherited from Base

#cleanup, #failed?, #failure_message, #run, #success?

Constructor Details

#initialize(branch_name) ⇒ BranchDelete

Returns a new instance of BranchDelete.



7
8
9
10
# File 'lib/papa/command/git/branch_delete.rb', line 7

def initialize(branch_name)
  command = "git branch -D #{branch_name}"
  super(command)
end