Class: Pulsar::IdentifyRepositoryType
- Inherits:
-
Object
- Object
- Pulsar::IdentifyRepositoryType
- Includes:
- Interactor, Validator
- Defined in:
- lib/pulsar/interactors/identify_repository_type.rb
Instance Method Summary collapse
Methods included from Validator
#context_fail!, included, #validable_properties, #validate_context!
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/pulsar/interactors/identify_repository_type.rb', line 8 def call case context.repository_location when :local context.repository_type = :folder when :remote context.repository_type = github_repository? ? :github : :git end end |