Created
May 20, 2014 22:05
-
-
Save boris/797cde199e2e428786a0 to your computer and use it in GitHub Desktop.
Copy files to remote directory using Capistrano 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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