Skip to content

Instantly share code, notes, and snippets.

@treeder
Created March 26, 2011 20:18
Show Gist options
  • Select an option

  • Save treeder/888602 to your computer and use it in GitHub Desktop.

Select an option

Save treeder/888602 to your computer and use it in GitHub Desktop.
Shows how to use merge_gems
require 'simple_worker'
class TwilioWorker < SimpleWorker::Base
# This is the magic function. It will also require 'twiliolib'
merge_gem 'twiliolib'
# You can also specify the version
# merge_gem 'twiliolib', '2.0.7'
attr_accessor :twilio_key, :twilio_secret
def run
twilio = Twilio::RestAccount.new(twilio_key, twilio_secret)
# do some twilioish stuff
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment