Exception: GitProc::ParkedChangesError
- Inherits:
-
GitProcessError
- Object
- RuntimeError
- GitProcessError
- GitProc::ParkedChangesError
- Includes:
- AbstractErrorBuilder
- Defined in:
- lib/git-process/parked_changes_error.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#lib ⇒ Object
readonly
Returns the value of attribute lib.
Instance Method Summary collapse
- #build_commands ⇒ Object
- #human_message ⇒ Object
-
#initialize(lib) ⇒ ParkedChangesError
constructor
A new instance of ParkedChangesError.
Methods included from AbstractErrorBuilder
#append_commands, #build_message, #commands, #shell_escaped_files
Constructor Details
#initialize(lib) ⇒ ParkedChangesError
Returns a new instance of ParkedChangesError.
23 24 25 26 27 |
# File 'lib/git-process/parked_changes_error.rb', line 23 def initialize(lib) @lib = lib msg = super(msg) end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
20 21 22 |
# File 'lib/git-process/parked_changes_error.rb', line 20 def @error_message end |
#lib ⇒ Object (readonly)
Returns the value of attribute lib.
20 21 22 |
# File 'lib/git-process/parked_changes_error.rb', line 20 def lib @lib end |
Instance Method Details
#build_commands ⇒ Object
35 36 37 |
# File 'lib/git-process/parked_changes_error.rb', line 35 def build_commands ['git branch -m _parking_ my_feature_branch'] end |
#human_message ⇒ Object
30 31 32 |
# File 'lib/git-process/parked_changes_error.rb', line 30 def "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 |