Exception: Bub::Errors::NonExistentGitRepositoryError

Inherits:
Base
  • Object
show all
Defined in:
lib/bub/errors/non_existent_git_repository_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(action_name) ⇒ NonExistentGitRepositoryError

Returns a new instance of NonExistentGitRepositoryError.



6
7
8
# File 'lib/bub/errors/non_existent_git_repository_error.rb', line 6

def initialize(action_name)
  @action_name = action_name
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/bub/errors/non_existent_git_repository_error.rb', line 10

def to_s
  abort "`#{@action_name}` must be run from inside a git repository"
end