Class: GithubDownloadWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/github_download_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(repo_id, token = nil) ⇒ Object



5
6
7
8
9
# File 'app/workers/github_download_worker.rb', line 5

def perform(repo_id, token = nil)
  token = token || AuthToken.token
  repo = GithubRepository.find_by_id(repo_id)
  repo.update_all_info(token) if repo
end