Created
May 13, 2015 08:12
-
-
Save ehlyzov/299c252071473c54f849 to your computer and use it in GitHub Desktop.
Migrate from github to bitbucket. Task for updating repository url on all application instances. Capistrano 3.
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 characters
| task :fix_repo do | |
| on roles(:app) do | |
| config = repo_path.join('config') | |
| execute :sed, '-i', '--', 's/github.com/bitbucket.org/g', config | |
| end | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment