Module: V::Adapters::Git::WorkTreeRequirement
- Defined in:
- lib/v/adapters/git.rb
Instance Method Summary collapse
-
#call(environment) ⇒ Object
Ensures all calls require a git dir and a work tree.
Instance Method Details
#call(environment) ⇒ Object
Ensures all calls require a git dir and a work tree.
11 12 13 14 15 16 |
# File 'lib/v/adapters/git.rb', line 11 def call(environment) raise V::ENOTREPO unless File.directory? environment.git_dir raise V::ENOTWTREE if environment. super environment end |