Class: GitImproved::GitCommandFailed

Inherits:
Benry::CmdApp::CommandError
  • Object
show all
Defined in:
lib/git-improved.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_commitObject (readonly)

Returns the value of attribute git_commit.



98
99
100
# File 'lib/git-improved.rb', line 98

def git_commit
  @git_commit
end