Class: Workers::UpdateRepo

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

Overview

A worker that updates a single ronin repo.

Instance Method Summary collapse

Instance Method Details

#perform(name) ⇒ Object



35
36
37
38
39
# File 'workers/update_repo.rb', line 35

def perform(name)
  repo = Ronin::Repos.cache_dir[name]

  repo.update
end