Exception: Bundler::Source::Git::GitCommandError
- Inherits:
-
GitError
- Object
- StandardError
- BundlerError
- GitError
- Bundler::Source::Git::GitCommandError
- Defined in:
- lib/bundler/source/git/git_proxy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command, path, extra_info = nil) ⇒ GitCommandError
constructor
A new instance of GitCommandError.
Methods inherited from BundlerError
Constructor Details
#initialize(command, path, extra_info = nil) ⇒ GitCommandError
Returns a new instance of GitCommandError.
28 29 30 31 32 33 34 35 |
# File 'lib/bundler/source/git/git_proxy.rb', line 28 def initialize(command, path, extra_info = nil) @command = command msg = String.new msg << "Git error: command `#{command}` in directory #{path} has failed." msg << "\n#{extra_info}" if extra_info super msg end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
26 27 28 |
# File 'lib/bundler/source/git/git_proxy.rb', line 26 def command @command end |