Skip to content

Instantly share code, notes, and snippets.

@carimura
Created June 11, 2012 19:36
Show Gist options
  • Save carimura/2912178 to your computer and use it in GitHub Desktop.
Save carimura/2912178 to your computer and use it in GitHub Desktop.
workers/iron_mailer.worker
runtime "ruby"
# Naming our worker (this is an arbitrary string, we like camelcasing)
name "IronMailer"
# The actual worker file to execute
exec "iron_mailer.rb"
# Merging all of our Rails apps models
dir '../app/models'
# Merging our mailer view
dir '../app/views/mailer'
# including the email layout and putting into the /layouts directory
file "../app/views/layouts/email.html.erb", "layouts"
# including our settings file
file "../config/settings.yml"
# including the action_mailer gem
gem "actionmailer"
@jsmpereira
Copy link

I think last file keyword should be:

file "../app/config/settings.yml"

@jsmpereira
Copy link

Nevermind. My mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment