Skip to content

Instantly share code, notes, and snippets.

@boris
Created May 20, 2014 22:05
Show Gist options
  • Save boris/797cde199e2e428786a0 to your computer and use it in GitHub Desktop.
Save boris/797cde199e2e428786a0 to your computer and use it in GitHub Desktop.
Copy files to remote directory using Capistrano 3
namespace :devops do
desc "Copy files"
task :copy do
on roles(:all) do |host|
%w[ file.one file.two ].each do |f|
upload! '/path/to/file/' + f , '/remote/path/' + f
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment