Skip to content

Instantly share code, notes, and snippets.

@Nephos
Created April 30, 2015 12:34
Show Gist options
  • Save Nephos/91f207f2b8716349bac0 to your computer and use it in GitHub Desktop.
Save Nephos/91f207f2b8716349bac0 to your computer and use it in GitHub Desktop.
scraps = YAML.load_file("scrap.yml")
scraps.each do |scrap, date|
every date[:day].day, :at => date[:at] do
runner "#{scrap}.perform_async"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment