Method: Rex::JobContainer#stop_job

Defined in:
lib/rex/job_container.rb

#stop_job(jid) ⇒ Object

Stops the job with the supplied name and forces it to cleanup. Stopping the job also leads to its removal.



165
166
167
168
169
170
171
# File 'lib/rex/job_container.rb', line 165

def stop_job(jid)
  if (j = self[jid.to_s])
    j.stop

    remove_job(j)
  end
end