Sha256: f7eb83e12b2789ff01bc9bea465f19e5e128f6c772d59a1d98f9762357220b23
Contents?: true
Size: 510 Bytes
Versions: 12
Compression:
Stored size: 510 Bytes
Contents
require 'papa/command/base' module Papa module Command module Git class Checkout < Command::Base def initialize(branch_name) @branch_name = branch_name command = "git checkout #{@branch_name}" super(command) end def failure_message super message = "Failed to checkout #{@branch_name.bold}. Check whether this branch exists." Helper::Output.error message message end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems