Exception: Git::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Git::CommandFailed
- Defined in:
- lib/repo_manager/git/lib.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
Instance Method Summary collapse
-
#initialize(command, exitstatus, error = '') ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(command, exitstatus, error = '') ⇒ CommandFailed
Returns a new instance of CommandFailed.
10 11 12 13 14 15 |
# File 'lib/repo_manager/git/lib.rb', line 10 def initialize(command, exitstatus, error='') @command = command @exitstatus = exitstatus @error = error super "Command exited with #{exitstatus}: #{command}" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/repo_manager/git/lib.rb', line 6 def command @command end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
8 9 10 |
# File 'lib/repo_manager/git/lib.rb', line 8 def error @error end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
7 8 9 |
# File 'lib/repo_manager/git/lib.rb', line 7 def exitstatus @exitstatus end |