alpha_omega 0.0.105 → 0.0.106

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/libexec/activate +95 -0
  3. data/libexec/debug +95 -0
  4. metadata +5 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.105
1
+ 0.0.106
data/libexec/activate ADDED
@@ -0,0 +1,95 @@
1
+ #!/bin/bash -e
2
+
3
+ hst_this=$(hostname -s)
4
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
5
+ # unless the .ao_no_proxy file exists
6
+ if [[ ! -f ".ao_no_proxy" ]]; then
7
+ # ssh into deploy host and run from there
8
+ exec bin/proxy $(basename $0) "$@"
9
+ exit 1
10
+ fi
11
+ fi
12
+
13
+ case "$(basename $0)" in
14
+ debug)
15
+ export LOCAL_ONLY=true
16
+
17
+ {
18
+ cap $(for a in "$@"; do echo $a.echo; done)
19
+ }
20
+ ;;
21
+
22
+ hosts)
23
+ export LOCAL_ONLY=true
24
+
25
+ {
26
+ cap $(for a in "$@"; do echo $a.echo; done)
27
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
28
+ ;;
29
+
30
+ dna)
31
+ export LOCAL_ONLY=true
32
+
33
+ {
34
+ echo "eea914aaa8dde6fdae29242b1084a2b0415eefaf ---"
35
+ cap $(for a in "$@"; do echo $a.yaml; done)
36
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
37
+ ;;
38
+
39
+ *)
40
+ set $(for a in "$@"; do echo $a.app; done)
41
+ case "$(basename $0)" in
42
+ deploy|release)
43
+ bundle exec cap "$@" deploy
44
+ ;;
45
+
46
+ rollback)
47
+ bundle exec cap "$@" deploy:rollback
48
+ ;;
49
+
50
+ stage)
51
+ bundle exec cap "$@" deploy:update_code
52
+ ;;
53
+
54
+ activate)
55
+ bundle exec cap "$@" deploy:symlink deploy:restart
56
+ ;;
57
+
58
+ compare)
59
+ bundle exec cap "$@" deploy:compare
60
+ ;;
61
+
62
+ restart)
63
+ bundle exec cap "$@" deploy:restart
64
+ ;;
65
+
66
+ restart)
67
+ bundle exec cap "$@" deploy:restart
68
+ ;;
69
+
70
+ build)
71
+ bundle exec cap "$@" deploy:build
72
+ ;;
73
+
74
+ dist)
75
+ bundle exec cap "$@" deploy:dist
76
+ ;;
77
+
78
+ config)
79
+ bundle exec cap "$@" deploy:config
80
+ ;;
81
+
82
+ invoke)
83
+ bundle exec cap "$@" invoke
84
+ ;;
85
+
86
+ shell)
87
+ bundle exec cap "$@" shell
88
+ ;;
89
+
90
+ *)
91
+ bundle exec cap "$@"
92
+ ;;
93
+ esac
94
+ esac
95
+
data/libexec/debug ADDED
@@ -0,0 +1,95 @@
1
+ #!/bin/bash -e
2
+
3
+ hst_this=$(hostname -s)
4
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
5
+ # unless the .ao_no_proxy file exists
6
+ if [[ ! -f ".ao_no_proxy" ]]; then
7
+ # ssh into deploy host and run from there
8
+ exec bin/proxy $(basename $0) "$@"
9
+ exit 1
10
+ fi
11
+ fi
12
+
13
+ case "$(basename $0)" in
14
+ debug)
15
+ export LOCAL_ONLY=true
16
+
17
+ {
18
+ cap $(for a in "$@"; do echo $a.echo; done)
19
+ }
20
+ ;;
21
+
22
+ hosts)
23
+ export LOCAL_ONLY=true
24
+
25
+ {
26
+ cap $(for a in "$@"; do echo $a.echo; done)
27
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
28
+ ;;
29
+
30
+ dna)
31
+ export LOCAL_ONLY=true
32
+
33
+ {
34
+ echo "eea914aaa8dde6fdae29242b1084a2b0415eefaf ---"
35
+ cap $(for a in "$@"; do echo $a.yaml; done)
36
+ } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
37
+ ;;
38
+
39
+ *)
40
+ set $(for a in "$@"; do echo $a.app; done)
41
+ case "$(basename $0)" in
42
+ deploy|release)
43
+ bundle exec cap "$@" deploy
44
+ ;;
45
+
46
+ rollback)
47
+ bundle exec cap "$@" deploy:rollback
48
+ ;;
49
+
50
+ stage)
51
+ bundle exec cap "$@" deploy:update_code
52
+ ;;
53
+
54
+ activate)
55
+ bundle exec cap "$@" deploy:symlink deploy:restart
56
+ ;;
57
+
58
+ compare)
59
+ bundle exec cap "$@" deploy:compare
60
+ ;;
61
+
62
+ restart)
63
+ bundle exec cap "$@" deploy:restart
64
+ ;;
65
+
66
+ restart)
67
+ bundle exec cap "$@" deploy:restart
68
+ ;;
69
+
70
+ build)
71
+ bundle exec cap "$@" deploy:build
72
+ ;;
73
+
74
+ dist)
75
+ bundle exec cap "$@" deploy:dist
76
+ ;;
77
+
78
+ config)
79
+ bundle exec cap "$@" deploy:config
80
+ ;;
81
+
82
+ invoke)
83
+ bundle exec cap "$@" invoke
84
+ ;;
85
+
86
+ shell)
87
+ bundle exec cap "$@" shell
88
+ ;;
89
+
90
+ *)
91
+ bundle exec cap "$@"
92
+ ;;
93
+ esac
94
+ esac
95
+
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: 205
4
+ hash: 203
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 105
10
- version: 0.0.105
9
+ - 106
10
+ version: 0.0.106
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -118,10 +118,12 @@ files:
118
118
  - LICENSE
119
119
  - VERSION
120
120
  - README.mkd
121
+ - libexec/activate
121
122
  - libexec/build
122
123
  - libexec/check
123
124
  - libexec/compare
124
125
  - libexec/config
126
+ - libexec/debug
125
127
  - libexec/deploy
126
128
  - libexec/dist
127
129
  - libexec/dna