Closed jrhorn424 closed 10 years ago
Does this have to do with exec
'ing the built-up command? Anyway, the following task is a workaround, but doesn't address the issue of multiple calls to scp_upload
in the same task.
desc "Upload secret configuration files."
task :config => :environment do
scp_upload "#{app_root}/config/{application,database}.yml", "#{deploy_to}/shared/config/", verbose: true
end
In the following task:
The first call to scp_upload is successful, but the second one is never triggered. Observe:
Edit: Upon reviewing the source code for mina-scp, this is likely either a problem with return codes or my understanding of how to create mina tasks.