Spec-Zone.ru › Ruby 2.7

класс Bundler::Source::Git::GitCommandError

Родитель:
Bundler::GitError

Атрибуты

command[R]

Публичные Классовые Методы

new(command, path = nil, extra_info = nil) Показать исходный код
# File lib/bundler/source/git/git_proxy.rb, line 30
def initialize(command, path = nil, extra_info = nil)
  @command = command

  msg = String.new
  msg << "Git error: command `git #{command}` in directory #{SharedHelpers.pwd} has failed."
  msg << "\n#{extra_info}" if extra_info
  msg << "\nIf this error persists you could try removing the cache directory '#{path}'" if path && path.exist?
  super msg
end
Вызывает метод родительского класса Exception::new

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API