title: Reschedule rask task to the next day if it falls on sunday in ruby
body: <p>I have defined a rake task to run on the 2nd and 17th of every month. But I don't want this task to run if 2nd and 17th fall on Sunday. In that case, the task should run on the next day. Any idea of how that can be achieved, anyone?</p>
  
  <pre><code>#run this task at 8am on 17th of every month
  every '0 8 17 * *' do
    rake 'money:reminder', environment: ENV['RAILS_ENV']
  end
  
  
  #run this task at 8am on the 2nd day of every month
  every '0 8 2 * *' do
    rake 'money:reminder', environment: ENV['RAILS_ENV']
  end
  </code></pre>