Module: Mumukit::Nuntius::JobPublisher

Defined in:
lib/mumukit/nuntius/job_publisher.rb

Class Method Summary collapse

Class Method Details

.publish(job, payload) ⇒ Object



5
6
7
8
# File 'lib/mumukit/nuntius/job_publisher.rb', line 5

def publish(job, payload)
  payload.merge!(sender: Mumukit::Nuntius.config.app_name)
  Mumukit::Nuntius::Publisher.publish "jobs", {data: payload}, {type: job}
end