Class: PGit::CurrentProject::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/pgit/current_project/validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(matching_projects) ⇒ Validator

Returns a new instance of Validator.



4
5
6
7
8
9
# File 'lib/pgit/current_project/validator.rb', line 4

def initialize(matching_projects)
  if matching_projects.length == 0
    message = "None of the project paths matches the working directory"
    raise PGit::Error::User, message
  end
end