Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 15 lines (13 sloc) 0.491 kb
a305349a » treeder
2012-08-22 Added email worker.
1 require_relative 'config.rb'
2
3 iw = IronWorkerNG::Client.new
4 task = iw.tasks.create("email_worker",
5 SingletonConfig.config.merge(
6 to: "treeder@gmail.com",
7 from: "travis@iron.io",
8 subject: "Thanks for the Lead!",
9 body: "Thanks again for the lead"
10
11 ))
12 status = iw.tasks.wait_for(task.id)
13 p status
14 puts status.msg
15 puts iw.tasks.log(task.id)
Something went wrong with that request. Please try again.