Class: Pulsar::CloneRepository

Inherits:
Object
  • Object
show all
Includes:
Interactor, Validator
Defined in:
lib/pulsar/interactors/clone_repository.rb

Instance Method Summary collapse

Methods included from Validator

#context_fail!, included, #validable_properties, #validate_context!

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
# File 'lib/pulsar/interactors/clone_repository.rb', line 8

def call
  case context.repository_type
  when :git    then clone_git_repository
  when :github then clone_github_repository
  when :folder then copy_local_folder
  end
rescue
  context_fail! $!.message
end