{"issue":{"milestone":null,"user":{"id":1072338,"login":"jessegoodnoe","url":"https://api.github.com/users/jessegoodnoe","avatar_url":"https://secure.gravatar.com/avatar/fad2a39e46a148d828480d5fd8a8b31c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fad2a39e46a148d828480d5fd8a8b31c"},"created_at":"2011-09-22T21:35:47Z","title":"Capistrano clear_crontab fails because release_path doesn't exist.","state":"closed","updated_at":"2011-12-19T13:30:48Z","labels":[],"id":1718272,"html_url":"https://github.com/javan/whenever/issues/182","closed_at":"2011-12-19T13:30:48Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"When calling the capistrano task \"whenever:clear_crontab\" by itself, it will fail. e.g. `cap whenever:clear_crontab`. This is because you're not doing a deploy, hence you haven't pushed any code to the server. If you haven't pushed any code, then release_path does not exist on the sever.\r\n\r\nThe capistrano task whenever:clear_crontab should probably use the current_path directory. Even if you were pushing code, in theory you want to clear the crontab of the current running release, not the release you're just pushing.\r\n\r\nexample failure\r\n`failed: \"sh -c 'cd /usr/local/username/application/releases/20110922212205 && bundle exec whenever --clear-crontab application'\" on 192.168.1.100,192.168.1.101`","number":182,"url":"https://api.github.com/repos/javan/whenever/issues/182","comments":2,"assignee":null},"action":"closed"}