Class: Pulsar::IdentifyRepositoryLocation
- Inherits:
-
Object
- Object
- Pulsar::IdentifyRepositoryLocation
- Includes:
- Interactor, Validator
- Defined in:
- lib/pulsar/interactors/identify_repository_location.rb
Instance Method Summary collapse
Methods included from Validator
#context_fail!, included, #validable_properties, #validate_context!
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/pulsar/interactors/identify_repository_location.rb', line 6 def call context.repository_location = if File.exist?(context.repository) :local else :remote end rescue context_fail! $!. end |