Class: RecreateMissingNetworks

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

Overview

One time job to recreate network snapshots for network ids 1 to 27

Instance Method Summary collapse

Instance Method Details

#perform(ids: 1..27) ⇒ Object



11
12
13
14
15
16
# File 'app/workers/recreate_missing_networks.rb', line 11

def perform(ids: 1..27)
  maker = NetworkCsvMaker.new
  ids.each do |network_id|
    maker.update_network_snapshot(network_id)
  end
end