Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 440 Bytes
require_relative 'config.rb'
iw = IronWorkerNG::Client.new
task = iw.tasks.create("email_worker",
SingletonConfig.config.merge(
to: "treeder@gmail.com",
subject: "Thanks for the Lead!",
body: "Thanks again for the lead"
))
status = iw.tasks.wait_for(task.id)
p status
puts status.msg
puts iw.tasks.log(task.id)