[DRE-commits] r5352 - trunk/gemwatch
Antonio Terceiro
terceiro-guest at alioth.debian.org
Sun May 16 16:54:31 UTC 2010
Author: terceiro-guest
Date: 2010-05-16 16:54:30 +0000 (Sun, 16 May 2010)
New Revision: 5352
Modified:
trunk/gemwatch/Rakefile
Log:
Updating alioth deployment rules
Modified: trunk/gemwatch/Rakefile
===================================================================
--- trunk/gemwatch/Rakefile 2010-05-16 15:43:30 UTC (rev 5351)
+++ trunk/gemwatch/Rakefile 2010-05-16 16:54:30 UTC (rev 5352)
@@ -1,9 +1,22 @@
ENV['LC_ALL'] = 'POSIX'
+ALIOTH_DEPLOY_DIR = '/var/lib/gforge/chroot/home/groups/pkg-ruby-extras/gemwatch'
+
+# The `2>/dev/null || true` in the commands below to ignore errors when trying
+# to change file attributes under tmp/, because the files there are created by
+# the www-data user
+ALIOTH_DEPLOY_COMMANDS = [
+ "chgrp -R pkg-ruby-extras #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
+ "chmod -R a+rX #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
+ "mkdir -p #{ALIOTH_DEPLOY_DIR}/tmp",
+ "setfacl -m u:www-data:rwx #{ALIOTH_DEPLOY_DIR}/tmp",
+ "chmod -R g+w #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
+].join('; ')
+
desc "Deploys gemwatch on alioth.debian.org"
task :alioth do
- sh 'rsync -avtPC --exclude /.git --exclude /tmp --exclude /.bundle ./ alioth.debian.org:/var/lib/gforge/chroot/home/groups/pkg-ruby-extras/gemwatch/'
- sh 'ssh alioth.debian.org chmod -R a+rX /var/lib/gforge/chroot/home/groups/pkg-ruby-extras/gemwatch/'
+ sh "rsync -avtPC --exclude /.git --exclude /tmp --exclude /.bundle ./ alioth.debian.org:#{ALIOTH_DEPLOY_DIR}/"
+ sh "ssh alioth.debian.org '#{ALIOTH_DEPLOY_COMMANDS}'"
end
task :default do
More information about the Pkg-ruby-extras-commits
mailing list