Skip to content

Commit

Permalink
Use the current path when clearing crontab instead of release path
Browse files Browse the repository at this point in the history
  • Loading branch information
trobrock committed Dec 18, 2011
1 parent 1a13134 commit d032bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whenever/capistrano.rb
Expand Up @@ -57,7 +57,7 @@
DESC
task :clear_crontab do
options = fetch(:whenever_options)
run "cd #{fetch :release_path} && #{fetch :whenever_command} #{fetch :whenever_clear_flags}", options if find_servers(options).any?
run "cd #{fetch :current_path} && #{fetch :whenever_command} #{fetch :whenever_clear_flags}", options if find_servers(options).any?
end
end
end

0 comments on commit d032bac

Please sign in to comment.