Created
November 14, 2013 01:31
-
-
Save corny/7459729 to your computer and use it in GitHub Desktop.
Revisions
-
corny created this gist
Nov 14, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # Save this file as lib/capistrano/tasks/git.cap namespace :git do desc 'Copy repo to releases' task create_release: :'git:update' do on roles(:all) do with fetch(:git_environmental_variables) do within repo_path do execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path end end end end end