class GitProc::ParkedChangesError

Attributes

error_message[R]
lib[R]

Public Class Methods

new(lib) click to toggle source
Calls superclass method
# File lib/git-process/parked_changes_error.rb, line 23
def initialize(lib)
  @lib = lib
  msg = build_message
  super(msg)
end

Public Instance Methods

build_commands() click to toggle source
# File lib/git-process/parked_changes_error.rb, line 35
def build_commands
  ['git branch -m _parking_ my_feature_branch']
end
human_message() click to toggle source
# File lib/git-process/parked_changes_error.rb, line 30
def human_message
  "You made your changes on the the '_parking_' branch instead of a feature branch.\n"+'Please rename the branch to be a feature branch.'
end