For the ones who are still using Capistrano 2, tmp_dir
does not exist. However you can use copy_dir
instead:
set :copy_dir, '/home/user/tmp'
Link to the source code: https://github.com/capistrano/capistrano/blob/legacy-v2/lib/capistrano/recipes/deploy/strategy/copy.rb#L275