0.0
No commit activity in last 3 years
No release in over 3 years
A worker that will run a Github Gist on on IronWorker http://www.iron.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Execute a Gist on IronWorker

An IronWorker that runs any gist.

Getting Started

You'll need an Iron.io account first, get one for free at www.iron.io.

Install Gem

sudo gem install gist_worker

Create a gist

Here's an example one: https://gist.github.com/1989106

Queue it up!

# Configure IronWorker first
IronWorker.configure do |config|
  config.token = 'MY_IRON_TOKEN'
  config.project_id = 'MY_IRON_PROJECT_ID'
end
# Now we just create our GistWorker and queue it up
require 'gist_worker'
worker = GistWorker::Worker.new
worker.gist_id = "1989106"
worker.gist_file = "tester.rb"
worker.params = {'key1'=>'value', 'key2'=>3}
worker.queue

Either look in HUD to see if it worked or:

Optional: Wait for it to complete

status = worker.wait_until_complete
p status
puts worker.get_log