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