Class: GitImproved::GitCommandFailed
- Inherits:
-
Benry::CmdApp::CommandError
- Object
- Benry::CmdApp::CommandError
- GitImproved::GitCommandFailed
- Defined in:
- lib/git-improved.rb
Instance Attribute Summary collapse
-
#git_commit ⇒ Object
readonly
Returns the value of attribute git_commit.
Instance Method Summary collapse
-
#initialize(git_command = nil) ⇒ GitCommandFailed
constructor
A new instance of GitCommandFailed.
Constructor Details
#initialize(git_command = nil) ⇒ GitCommandFailed
Returns a new instance of GitCommandFailed.
93 94 95 96 |
# File 'lib/git-improved.rb', line 93 def initialize(git_command=nil) super "Git command failed: #{git_command}" @git_command = git_command end |
Instance Attribute Details
#git_commit ⇒ Object (readonly)
Returns the value of attribute git_commit.
98 99 100 |
# File 'lib/git-improved.rb', line 98 def git_commit @git_commit end |