Sha256: 57d0c476a2c228343fcb510b0ab33e70ea7546e69abd8fd665cadc676fd55caf
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
module Rector class Worker attr_reader :id, :data def initialize(id) @id = id @data = Hash.new @backend = Rector.backend_for(job_id) @backend.add_worker(@id) end def job_id @id.split(":").first end def finish @backend.update_job_data_from_hash(@data) @backend.finish_worker(@id) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rector-0.0.5 | lib/rector/worker.rb |
rector-0.0.4 | lib/rector/worker.rb |
rector-0.0.3 | lib/rector/worker.rb |
rector-0.0.2 | lib/rector/worker.rb |
rector-0.0.1 | lib/rector/worker.rb |