Sha256: 74327401372374f5358794477401084809a87b97670b68735c1fce63eb73f302

Contents?: true

Size: 1.61 KB

Versions: 17

Compression:

Stored size: 1.61 KB

Contents

Getting Started
===============

[Sign up for a IronWorker account][1], it's free to try!

[1]: http://www.iron.io/

Install IronWorker Gem
------------------------

    gem install iron_worker

Configure IronWorker
----------------------

You really just need your token, which you can get [here][2]
[2]: http://hud.iron.io/tokens

    IronWorker.configure do |config|
        config.token = TOKEN
        config.project_id = MY_PROJECT_ID
    end

Write a Worker
--------------

Here's an example worker that sends an email:

    require 'iron_worker'

    class HelloWorker < IronWorker::Base

        attr_accessor :name

        # This is the method that will be run
        def run
            puts "Hello #{name}!"
        end
    end

Test It Locally
---------------

Let's say someone does something in your app and you want to send an email about it.

    worker = HelloWorker.new
    worker.name = "Travis"
    worker.run_local

Once you've got it working locally, the next step is to run it on the IronWorker cloud.

Queue up your Worker on the IronWorker Cloud
----------------------------------------------

Let's say someone does something in your app and you want to send an email about it.

    worker = HelloWorker.new
    worker.name = "Travis"
    worker.queue

This will send it off to the IronWorker cloud.

Full Documentation
-----------------

Now that you've got your first worker running, be sure to [check out the full documentation](http://docs.iron.io).
IronWorker can do so much more!

Discussion Group
----------------------

Join the discussion group at: https://groups.google.com/forum/#!forum/ironworker-users

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
iron_worker-2.3.13 README.markdown
iron_worker-2.3.12 README.markdown
iron_worker-2.3.11 README.markdown
iron_worker-2.3.10 README.markdown
iron_worker-2.3.9 README.markdown
iron_worker-2.3.8 README.markdown
iron_worker-2.3.7 README.markdown
iron_worker-2.3.6 README.markdown
iron_worker-2.3.5 README.markdown
iron_worker-2.3.4 README.markdown
iron_worker-2.3.3 README.markdown
iron_worker-2.3.2 README.markdown
iron_worker-2.3.1 README.markdown
iron_worker-2.3.0 README.markdown
iron_worker-2.2.0 README.markdown
iron_worker-2.1.1 README.markdown
iron_worker-2.1.0 README.markdown