I want to run a rake task at end of month, but according to the post below cron doesn't provide a easy way for it.
Cron job to run on the last day of the month
Therefore I wrote like this:
every "50 23 30 4,6,9,11 *" do
rbenv_rake "foo:update"
end
every "50 23 31 1,3,5,7,8,10,12 *" do
rbenv_rake "foo:update"
end
every "50 23 28 2 *" do
rbenv_rake "foo:update"
end
Is there wrapper method in whenever to write the code simpler?