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