Skip to content

Instantly share code, notes, and snippets.

@ghiden
Created March 28, 2012 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghiden/2224144 to your computer and use it in GitHub Desktop.
Save ghiden/2224144 to your computer and use it in GitHub Desktop.
specifying which day for "Whenever" gem
#https://github.com/javan/whenever
set :output, "#{path}/logs/cron.log"
every [:sunday, :monday, :tuesday, :wednesday, :thursday], :at => "15:50" do
command "ruby #{path}/something.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment