Sha256: e227e2715e496ce31ff5c8a45e03bb3c6c9fc3d7aefde5616ad742c0c58cc5ba
Contents?: true
Size: 307 Bytes
Versions: 3
Compression:
Stored size: 307 Bytes
Contents
module FireAndForget module Command class SetPid < CommandBase attr_reader :task_name, :pid def initialize(task_name, pid) @task_name, @pid = task_name.to_sym, pid.to_i end def run FireAndForget::Server.pids[@task_name] = @pid end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fire_and_forget-0.1.2 | lib/fire_and_forget/command/set_pid.rb |
fire_and_forget-0.1.1 | lib/fire_and_forget/command/set_pid.rb |
fire_and_forget-0.1.0 | lib/fire_and_forget/command/set_pid.rb |