Created
July 16, 2014 14:05
-
-
Save glaszig/9f06a23448324b8d7258 to your computer and use it in GitHub Desktop.
Upload task for 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 :deploy do | |
desc "Uploads a comma-separated list of files from ENV['files']" | |
task :upload do | |
on roles(:app) do | |
ENV.fetch('files', ENV['FILES']).split(',').map(&:strip).each do |file| | |
upload! file, current_path.join(file), recursive: true | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment