Sha256: d5915e0f3f7a80e111f371471c4507a23f5bd778928219f23204612395096c45
Contents?: true
Size: 384 Bytes
Versions: 4
Compression:
Stored size: 384 Bytes
Contents
module FireAndForget module Command class SetStatus < CommandBase def initialize(task_name, status_value) @task_name, @status_value = task_name.to_sym, status_value @pid = $$ end def run FireAndForget::Server.set_pid(@task_name, @pid) FireAndForget::Server.status[@task_name] = @status_value.to_s end end end end
Version data entries
4 entries across 4 versions & 1 rubygems