An IronWorker that hits some URL's. Can be scheduled for regular hits.
NOTE: You must have the Iron CLI tool setup and ready, see here for more info: https://github.com/iron-io/dockerworker
- Clone this repo.
- Change the URL's in
webhooker.rb
- Run it locally with:
docker run --rm -v "$(pwd)":/worker -w /worker iron/images:ruby-2.1 ruby webhooker.rb
- Upload it
zip -r webhooker.zip . && iron worker upload --name webhooker --zip webhooker.zip iron/images:ruby-2.1 ruby webhooker.rb
- Test it on IronWorker:
iron worker queue --wait webhooker
. - Then schedule it:
iron worker schedule --start-at 2015-06-24T08:00:00Z --run-every 86400 webhooker
. That command will run the schedule every 24 hours starting at the --start-at time.
That's it!