class Papa::Command::Git::Checkout

Public Class Methods

new(branch_name) click to toggle source
Calls superclass method Papa::Command::Base::new
# 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

Public Instance Methods

failure_message() click to toggle source
Calls superclass method Papa::Command::Base#failure_message
# File lib/papa/command/git/checkout.rb, line 13
def failure_message
  super
  message = "Failed to checkout #{@branch_name.bold}. Check whether this branch exists."
  Helper::Output.error message
  message
end