diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-04 01:02:54 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-04 01:02:54 +0300 |
commit | 43f5df21a39e0b9b16738bbd9e4047507bbcc9ef (patch) | |
tree | 24c17c9e6341a46a3092fd65371fbdc310ee1d9c /lib/tasks/dev_repo.rake | |
parent | c40c627a3ba4b282bf42e247dff5eb13aa6ca790 (diff) | |
download | gitlab-ce-43f5df21a39e0b9b16738bbd9e4047507bbcc9ef.tar.gz |
gitlab rake tasks refactored
Diffstat (limited to 'lib/tasks/dev_repo.rake')
-rw-r--r-- | lib/tasks/dev_repo.rake | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/tasks/dev_repo.rake b/lib/tasks/dev_repo.rake deleted file mode 100644 index 4ae06bb936e..00000000000 --- a/lib/tasks/dev_repo.rake +++ /dev/null @@ -1,24 +0,0 @@ -desc "Prepare for development" -task :dev_repo => :environment do -key = `sudo -u gitlabdev -H cat /home/gitlabdev/.ssh/id_rsa.pub` -raise "\n *** Run ./lib/tasks/dev_user.sh first *** \n" if key.empty? -Key.create(:user_id => User.first, :key => key, :title => "gitlabdev") - -puts "\n *** Clone diaspora from github" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/diaspora/diaspora.git /home/gitlabdev/diaspora"` - -puts "\n *** Push diaspora source to gitlab" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/diaspora; git remote add local git@localhost:diaspora.git; git push local master; git push local --tags; git checkout -b api origin/api; git push local api; git checkout -b heroku origin/heroku; git push local heroku"` - -puts "\n *** Clone rails from github" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rails/rails.git /home/gitlabdev/rails"` - -puts "\n *** Push rails source to gitlab" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rails; git remote add local git@localhost:ruby_on_rails.git; git push local master; git push local --tags"` - -puts "\n *** Clone rubinius from github" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rubinius/rubinius.git /home/gitlabdev/rubinius"` - -puts "\n *** Push rubinius source to gitlab" -`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rubinius; git remote add local git@localhost:rubinius.git; git push local master; git push local --tags"` -end |