Created
June 20, 2011 17:44
-
-
Save cbrunnkvist/1036106 to your computer and use it in GitHub Desktop.
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
From 636f9f7d31acf1ac75d7e5db4cf968c4ff376dc0 Mon Sep 17 00:00:00 2001 | |
From: Conny Brunnkvist <[email protected]> | |
Date: Mon, 20 Jun 2011 18:43:51 +0100 | |
Subject: [PATCH] Just a little wrapper script for maintenance tasks | |
--- | |
all-apps-all-envs.sh | 15 +++++++++++++++ | |
1 files changed, 15 insertions(+), 0 deletions(-) | |
create mode 100755 all-apps-all-envs.sh | |
diff --git a/all-apps-all-envs.sh b/all-apps-all-envs.sh | |
new file mode 100755 | |
index 0000000..a72267d | |
--- /dev/null | |
+++ b/all-apps-all-envs.sh | |
@@ -0,0 +1,15 @@ | |
+#!/bin/bash | |
+ | |
+if [ $# -lt 1 ] | |
+ then cat << _MJAU | |
+Usage: $0 [task(-s)]... | |
+Invoke Capistrano tasks across all APP & ENV combinations (e.g. "deploy:cleanup") | |
+_MJAU | |
+ exit 23 | |
+fi | |
+ | |
+for app in `cap -vT| grep APP| cut -f2 -d' '` ; do | |
+ for env in `cap -vT| grep ENV| cut -f2 -d' '` ; do | |
+ cap $app $env $* | |
+ done | |
+done | |
-- | |
1.7.5.3+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment