Class: Perkins::GitLoaderWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/perkins/git_loader_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(repo_id) ⇒ Object



9
10
11
12
13
14
# File 'lib/perkins/git_loader_worker.rb', line 9

def perform(repo_id)
  repo = Perkins::Repo.find(repo_id)
  #return if repo.downloading? or repo.downloaded?
  #it actually clone repo and instantiates git data
  repo.load_git
end