alpha_omega 0.0.83 → 0.0.84

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,9 +51,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
51
51
 
52
52
  _cset (:figlet) { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo }
53
53
 
54
- _cset :admin_hosts, /^/
55
- _cset :gateway_host, "localhost"
56
-
57
54
  # =========================================================================
58
55
  # These variables should NOT be changed unless you are very confident in
59
56
  # what you are doing. Make sure you understand all the implications of your
@@ -562,18 +559,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
562
559
  end
563
560
  end
564
561
 
565
- task :no_gateway do
566
- unset :gateway
567
- end
568
-
569
- task :ssh_gateway do
570
- # set gateway on non-admin servers, defaulting to the developer admin host
571
- if ENV["GATEWAY"] || !admin_hosts.match(Socket.gethostname)
572
- ssh_options[:forward_agent] = true
573
- set :gateway, ENV["GATEWAY"] ? ENV["GATEWAY"] : gateway_host
574
- end
575
- end
576
-
577
562
  on :exit do
578
563
  unless local_only
579
564
  put full_log, "#{log_path}/#{application}_last_deploy-#{release_name}-#{branch.gsub(/\W+/,"_")}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.83"
2
+ Version = "0.0.84"
3
3
  end
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/check CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/compare CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/config ADDED
@@ -0,0 +1,74 @@
1
+ #!/bin/bash -e
2
+
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
9
+ case "$(basename $0)" in
10
+ deploy|release)
11
+ bundle exec cap ssh_gateway "$@" deploy
12
+ ;;
13
+
14
+ rollback)
15
+ bundle exec cap ssh_gateway "$@" deploy:rollback
16
+ ;;
17
+
18
+ stage)
19
+ bundle exec cap ssh_gateway "$@" deploy:update_code
20
+ ;;
21
+
22
+ compare)
23
+ bundle exec cap ssh_gateway "$@" deploy:compare
24
+ ;;
25
+
26
+ restart)
27
+ bundle exec cap ssh_gateway "$@" deploy:restart
28
+ ;;
29
+
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
50
+ shell)
51
+ bundle exec cap ssh_gateway "$@" shell
52
+ ;;
53
+
54
+ hosts)
55
+ export LOCAL_ONLY=true
56
+
57
+ {
58
+ cap $(for a in "$@"; do echo $a.echo; done)
59
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
60
+ ;;
61
+
62
+ dna)
63
+ export LOCAL_ONLY=true
64
+
65
+ {
66
+ cap $(for a in "$@"; do echo $a.yaml; done)
67
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
68
+ ;;
69
+
70
+ *)
71
+ bundle exec cap ssh_gateway "$@"
72
+ ;;
73
+ esac
74
+
data/libexec/deploy CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/dist ADDED
@@ -0,0 +1,74 @@
1
+ #!/bin/bash -e
2
+
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
9
+ case "$(basename $0)" in
10
+ deploy|release)
11
+ bundle exec cap ssh_gateway "$@" deploy
12
+ ;;
13
+
14
+ rollback)
15
+ bundle exec cap ssh_gateway "$@" deploy:rollback
16
+ ;;
17
+
18
+ stage)
19
+ bundle exec cap ssh_gateway "$@" deploy:update_code
20
+ ;;
21
+
22
+ compare)
23
+ bundle exec cap ssh_gateway "$@" deploy:compare
24
+ ;;
25
+
26
+ restart)
27
+ bundle exec cap ssh_gateway "$@" deploy:restart
28
+ ;;
29
+
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
50
+ shell)
51
+ bundle exec cap ssh_gateway "$@" shell
52
+ ;;
53
+
54
+ hosts)
55
+ export LOCAL_ONLY=true
56
+
57
+ {
58
+ cap $(for a in "$@"; do echo $a.echo; done)
59
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
60
+ ;;
61
+
62
+ dna)
63
+ export LOCAL_ONLY=true
64
+
65
+ {
66
+ cap $(for a in "$@"; do echo $a.yaml; done)
67
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
68
+ ;;
69
+
70
+ *)
71
+ bundle exec cap ssh_gateway "$@"
72
+ ;;
73
+ esac
74
+
data/libexec/dna CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/hosts CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/invoke ADDED
@@ -0,0 +1,74 @@
1
+ #!/bin/bash -e
2
+
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
9
+ case "$(basename $0)" in
10
+ deploy|release)
11
+ bundle exec cap ssh_gateway "$@" deploy
12
+ ;;
13
+
14
+ rollback)
15
+ bundle exec cap ssh_gateway "$@" deploy:rollback
16
+ ;;
17
+
18
+ stage)
19
+ bundle exec cap ssh_gateway "$@" deploy:update_code
20
+ ;;
21
+
22
+ compare)
23
+ bundle exec cap ssh_gateway "$@" deploy:compare
24
+ ;;
25
+
26
+ restart)
27
+ bundle exec cap ssh_gateway "$@" deploy:restart
28
+ ;;
29
+
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
50
+ shell)
51
+ bundle exec cap ssh_gateway "$@" shell
52
+ ;;
53
+
54
+ hosts)
55
+ export LOCAL_ONLY=true
56
+
57
+ {
58
+ cap $(for a in "$@"; do echo $a.echo; done)
59
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
60
+ ;;
61
+
62
+ dna)
63
+ export LOCAL_ONLY=true
64
+
65
+ {
66
+ cap $(for a in "$@"; do echo $a.yaml; done)
67
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
68
+ ;;
69
+
70
+ *)
71
+ bundle exec cap ssh_gateway "$@"
72
+ ;;
73
+ esac
74
+
data/libexec/proxy ADDED
@@ -0,0 +1,6 @@
1
+ #!/bin/bash -e
2
+
3
+ hst_proxy="${GATEWAY:=deploy}"
4
+ git_url="$(git config --list | grep remote.origin.url | cut -d= -f2-)"
5
+
6
+ ssh zendesk@$hst_proxy alpha_omega_proxy_helper "$USER" "$git_url" "$@"
data/libexec/release ADDED
@@ -0,0 +1,74 @@
1
+ #!/bin/bash -e
2
+
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
9
+ case "$(basename $0)" in
10
+ deploy|release)
11
+ bundle exec cap ssh_gateway "$@" deploy
12
+ ;;
13
+
14
+ rollback)
15
+ bundle exec cap ssh_gateway "$@" deploy:rollback
16
+ ;;
17
+
18
+ stage)
19
+ bundle exec cap ssh_gateway "$@" deploy:update_code
20
+ ;;
21
+
22
+ compare)
23
+ bundle exec cap ssh_gateway "$@" deploy:compare
24
+ ;;
25
+
26
+ restart)
27
+ bundle exec cap ssh_gateway "$@" deploy:restart
28
+ ;;
29
+
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
50
+ shell)
51
+ bundle exec cap ssh_gateway "$@" shell
52
+ ;;
53
+
54
+ hosts)
55
+ export LOCAL_ONLY=true
56
+
57
+ {
58
+ cap $(for a in "$@"; do echo $a.echo; done)
59
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
60
+ ;;
61
+
62
+ dna)
63
+ export LOCAL_ONLY=true
64
+
65
+ {
66
+ cap $(for a in "$@"; do echo $a.yaml; done)
67
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
68
+ ;;
69
+
70
+ *)
71
+ bundle exec cap ssh_gateway "$@"
72
+ ;;
73
+ esac
74
+
data/libexec/restart ADDED
@@ -0,0 +1,74 @@
1
+ #!/bin/bash -e
2
+
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
9
+ case "$(basename $0)" in
10
+ deploy|release)
11
+ bundle exec cap ssh_gateway "$@" deploy
12
+ ;;
13
+
14
+ rollback)
15
+ bundle exec cap ssh_gateway "$@" deploy:rollback
16
+ ;;
17
+
18
+ stage)
19
+ bundle exec cap ssh_gateway "$@" deploy:update_code
20
+ ;;
21
+
22
+ compare)
23
+ bundle exec cap ssh_gateway "$@" deploy:compare
24
+ ;;
25
+
26
+ restart)
27
+ bundle exec cap ssh_gateway "$@" deploy:restart
28
+ ;;
29
+
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
50
+ shell)
51
+ bundle exec cap ssh_gateway "$@" shell
52
+ ;;
53
+
54
+ hosts)
55
+ export LOCAL_ONLY=true
56
+
57
+ {
58
+ cap $(for a in "$@"; do echo $a.echo; done)
59
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
60
+ ;;
61
+
62
+ dna)
63
+ export LOCAL_ONLY=true
64
+
65
+ {
66
+ cap $(for a in "$@"; do echo $a.yaml; done)
67
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
68
+ ;;
69
+
70
+ *)
71
+ bundle exec cap ssh_gateway "$@"
72
+ ;;
73
+ esac
74
+
data/libexec/rollback CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/shell CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
data/libexec/stage CHANGED
@@ -1,7 +1,13 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ if ! echo "$hst_this" | egrep "^(admin|develop)"; then
4
+ # ssh into deploy host and run from there
5
+ exec bin/proxy $(basename $0) "$@"
6
+ exit 1
7
+ fi
8
+
3
9
  case "$(basename $0)" in
4
- deploy|major|patch)
10
+ deploy|release)
5
11
  bundle exec cap ssh_gateway "$@" deploy
6
12
  ;;
7
13
 
@@ -21,6 +27,26 @@ case "$(basename $0)" in
21
27
  bundle exec cap ssh_gateway "$@" deploy:restart
22
28
  ;;
23
29
 
30
+ restart)
31
+ bundle exec cap ssh_gateway "$@" deploy:restart
32
+ ;;
33
+
34
+ build)
35
+ bundle exec cap ssh_gateway "$@" deploy:build
36
+ ;;
37
+
38
+ dist)
39
+ bundle exec cap ssh_gateway "$@" deploy:dist
40
+ ;;
41
+
42
+ config)
43
+ bundle exec cap ssh_gateway "$@" deploy:config
44
+ ;;
45
+
46
+ invoke)
47
+ bundle exec cap ssh_gateway "$@" invoke
48
+ ;;
49
+
24
50
  shell)
25
51
  bundle exec cap ssh_gateway "$@" shell
26
52
  ;;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha_omega
3
3
  version: !ruby/object:Gem::Version
4
- hash: 185
4
+ hash: 183
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 83
10
- version: 0.0.83
9
+ - 84
10
+ version: 0.0.84
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-31 00:00:00 +00:00
20
- default_executable:
19
+ date: 2011-08-31 00:00:00 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: grit
@@ -119,31 +118,36 @@ files:
119
118
  - LICENSE
120
119
  - README.mkd
121
120
  - Procfile.rb
122
- - libexec/stage
123
- - libexec/rollback
121
+ - libexec/build
122
+ - libexec/check
124
123
  - libexec/compare
125
- - libexec/shell
124
+ - libexec/config
126
125
  - libexec/deploy
127
- - libexec/patch
126
+ - libexec/dist
128
127
  - libexec/dna
129
- - libexec/check
130
128
  - libexec/hosts
131
- - lib/alpha_omega/utils.rb
132
- - lib/alpha_omega/deploy.rb
133
- - lib/alpha_omega/version.rb
129
+ - libexec/invoke
130
+ - libexec/proxy
131
+ - libexec/release
132
+ - libexec/restart
133
+ - libexec/rollback
134
+ - libexec/shell
135
+ - libexec/stage
136
+ - lib/alpha_omega/deploy/dependencies.rb
134
137
  - lib/alpha_omega/deploy/local_dependency.rb
138
+ - lib/alpha_omega/deploy/remote_dependency.rb
139
+ - lib/alpha_omega/deploy/scm/base.rb
140
+ - lib/alpha_omega/deploy/scm/git.rb
141
+ - lib/alpha_omega/deploy/scm.rb
135
142
  - lib/alpha_omega/deploy/strategy/base.rb
136
143
  - lib/alpha_omega/deploy/strategy/checkout.rb
137
144
  - lib/alpha_omega/deploy/strategy/remote.rb
138
- - lib/alpha_omega/deploy/scm.rb
139
- - lib/alpha_omega/deploy/templates/maintenance.rhtml
140
145
  - lib/alpha_omega/deploy/strategy.rb
141
- - lib/alpha_omega/deploy/scm/base.rb
142
- - lib/alpha_omega/deploy/scm/git.rb
143
- - lib/alpha_omega/deploy/dependencies.rb
144
- - lib/alpha_omega/deploy/remote_dependency.rb
146
+ - lib/alpha_omega/deploy/templates/maintenance.rhtml
147
+ - lib/alpha_omega/deploy.rb
148
+ - lib/alpha_omega/utils.rb
149
+ - lib/alpha_omega/version.rb
145
150
  - bin/alpha_omega
146
- has_rdoc: true
147
151
  homepage: https://github.com/HeSYINUvSBZfxqA/alpha_omega
148
152
  licenses: []
149
153
 
@@ -173,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
177
  requirements: []
174
178
 
175
179
  rubyforge_project:
176
- rubygems_version: 1.5.3
180
+ rubygems_version: 1.8.17
177
181
  signing_key:
178
182
  specification_version: 3
179
183
  summary: alpha_omega capistrano recipes