Capistrano/Whenever gem reporting OptionParser::InvalidOption on deploy

If you’re getting this error (probably after a bundle update), all you need to do is comment out: require "whenever/capistrano" Form your deploy.rb file, then deploy as usual, then uncomment it, and deploy again. Simple huh?