alpha_omega 0.0.141 → 0.0.142

Sign up to get free protection for your applications and to get access to all the features.
data/libexec/rollback CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/bin/bash -e
2
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
3
+ case "$(basename $0)" in
4
+ bump)
5
+ true
6
+ ;;
7
+ *)
8
+ hst_this=$(hostname -s)
9
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
10
+ # unless the .ao_no_proxy file exists
11
+ if [[ ! -f ".ao_no_proxy" ]]; then
12
+ # ssh into deploy host and run from there
13
+ exec bin/proxy $(basename $0) "$@"
14
+ exit 1
15
+ fi
16
+ fi
17
+ ;;
18
+ esac
12
19
 
13
20
  export LOCAL_ONLY=true
14
21
 
@@ -123,51 +130,47 @@ case "$(basename $0)" in
123
130
  fi
124
131
  case "$(basename $0)" in
125
132
  deploy)
126
- bundle exec cap "$@" deploy
133
+ bundle exec cap "$@" deploy:lock deploy
127
134
  ;;
128
135
 
129
136
  release)
130
- bundle exec cap "$@" deploy
137
+ bundle exec cap "$@" deploy:lock deploy
131
138
  ;;
132
139
 
133
140
  stage)
134
- bundle exec cap "$@" deploy:update_code deploy:symlink_next
141
+ bundle exec cap "$@" deploy:lock deploy:update_code deploy:symlink_next
135
142
  ;;
136
143
 
137
144
  restart)
138
- bundle exec cap "$@" deploy:restart
145
+ bundle exec cap "$@" deploy:lock deploy:restart
139
146
  ;;
140
147
 
141
148
  config)
142
- bundle exec cap "$@" deploy:config
149
+ bundle exec cap "$@" deploy:lock deploy:config
143
150
  ;;
144
151
 
145
152
  build)
146
- bundle exec cap "$@" deploy:build
153
+ bundle exec cap "$@" deploy:lock deploy:build
147
154
  ;;
148
155
 
149
156
  dist)
150
- bundle exec cap "$@" deploy:dist
157
+ bundle exec cap "$@" deploy:lock deploy:dist
151
158
  ;;
152
159
 
153
160
  activate)
154
- bundle exec cap "$@" deploy:symlink deploy:restart
161
+ bundle exec cap "$@" deploy:lock deploy:symlink deploy:restart
155
162
  ;;
156
163
 
157
164
  rollback)
158
- bundle exec cap "$@" deploy:rollback
165
+ bundle exec cap "$@" deploy:lock deploy:rollback
159
166
  ;;
160
167
 
161
168
  check)
162
- bundle exec cap "$@" deploy:check
163
- ;;
164
-
165
- compare)
166
- bundle exec cap "$@" deploy:compare
169
+ bundle exec cap "$@" deploy:lock deploy:check
167
170
  ;;
168
171
 
169
172
  plan)
170
- bundle exec cap "$@" deploy:plan
173
+ bundle exec cap "$@" deploy:lock deploy:plan
171
174
  ;;
172
175
 
173
176
  lock)
@@ -182,6 +185,14 @@ case "$(basename $0)" in
182
185
  bundle exec cap "$@" shell
183
186
  ;;
184
187
 
188
+ compare)
189
+ bundle exec cap "$@" deploy:compare
190
+ ;;
191
+
192
+ migrate)
193
+ bundle exec cap "$@" deploy:migrate
194
+ ;;
195
+
185
196
  *)
186
197
  bundle exec cap "$@"
187
198
  ;;
data/libexec/shell CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/bin/bash -e
2
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
3
+ case "$(basename $0)" in
4
+ bump)
5
+ true
6
+ ;;
7
+ *)
8
+ hst_this=$(hostname -s)
9
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
10
+ # unless the .ao_no_proxy file exists
11
+ if [[ ! -f ".ao_no_proxy" ]]; then
12
+ # ssh into deploy host and run from there
13
+ exec bin/proxy $(basename $0) "$@"
14
+ exit 1
15
+ fi
16
+ fi
17
+ ;;
18
+ esac
12
19
 
13
20
  export LOCAL_ONLY=true
14
21
 
@@ -123,51 +130,47 @@ case "$(basename $0)" in
123
130
  fi
124
131
  case "$(basename $0)" in
125
132
  deploy)
126
- bundle exec cap "$@" deploy
133
+ bundle exec cap "$@" deploy:lock deploy
127
134
  ;;
128
135
 
129
136
  release)
130
- bundle exec cap "$@" deploy
137
+ bundle exec cap "$@" deploy:lock deploy
131
138
  ;;
132
139
 
133
140
  stage)
134
- bundle exec cap "$@" deploy:update_code deploy:symlink_next
141
+ bundle exec cap "$@" deploy:lock deploy:update_code deploy:symlink_next
135
142
  ;;
136
143
 
137
144
  restart)
138
- bundle exec cap "$@" deploy:restart
145
+ bundle exec cap "$@" deploy:lock deploy:restart
139
146
  ;;
140
147
 
141
148
  config)
142
- bundle exec cap "$@" deploy:config
149
+ bundle exec cap "$@" deploy:lock deploy:config
143
150
  ;;
144
151
 
145
152
  build)
146
- bundle exec cap "$@" deploy:build
153
+ bundle exec cap "$@" deploy:lock deploy:build
147
154
  ;;
148
155
 
149
156
  dist)
150
- bundle exec cap "$@" deploy:dist
157
+ bundle exec cap "$@" deploy:lock deploy:dist
151
158
  ;;
152
159
 
153
160
  activate)
154
- bundle exec cap "$@" deploy:symlink deploy:restart
161
+ bundle exec cap "$@" deploy:lock deploy:symlink deploy:restart
155
162
  ;;
156
163
 
157
164
  rollback)
158
- bundle exec cap "$@" deploy:rollback
165
+ bundle exec cap "$@" deploy:lock deploy:rollback
159
166
  ;;
160
167
 
161
168
  check)
162
- bundle exec cap "$@" deploy:check
163
- ;;
164
-
165
- compare)
166
- bundle exec cap "$@" deploy:compare
169
+ bundle exec cap "$@" deploy:lock deploy:check
167
170
  ;;
168
171
 
169
172
  plan)
170
- bundle exec cap "$@" deploy:plan
173
+ bundle exec cap "$@" deploy:lock deploy:plan
171
174
  ;;
172
175
 
173
176
  lock)
@@ -182,6 +185,14 @@ case "$(basename $0)" in
182
185
  bundle exec cap "$@" shell
183
186
  ;;
184
187
 
188
+ compare)
189
+ bundle exec cap "$@" deploy:compare
190
+ ;;
191
+
192
+ migrate)
193
+ bundle exec cap "$@" deploy:migrate
194
+ ;;
195
+
185
196
  *)
186
197
  bundle exec cap "$@"
187
198
  ;;
data/libexec/stage CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/bin/bash -e
2
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
3
+ case "$(basename $0)" in
4
+ bump)
5
+ true
6
+ ;;
7
+ *)
8
+ hst_this=$(hostname -s)
9
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
10
+ # unless the .ao_no_proxy file exists
11
+ if [[ ! -f ".ao_no_proxy" ]]; then
12
+ # ssh into deploy host and run from there
13
+ exec bin/proxy $(basename $0) "$@"
14
+ exit 1
15
+ fi
16
+ fi
17
+ ;;
18
+ esac
12
19
 
13
20
  export LOCAL_ONLY=true
14
21
 
@@ -123,51 +130,47 @@ case "$(basename $0)" in
123
130
  fi
124
131
  case "$(basename $0)" in
125
132
  deploy)
126
- bundle exec cap "$@" deploy
133
+ bundle exec cap "$@" deploy:lock deploy
127
134
  ;;
128
135
 
129
136
  release)
130
- bundle exec cap "$@" deploy
137
+ bundle exec cap "$@" deploy:lock deploy
131
138
  ;;
132
139
 
133
140
  stage)
134
- bundle exec cap "$@" deploy:update_code deploy:symlink_next
141
+ bundle exec cap "$@" deploy:lock deploy:update_code deploy:symlink_next
135
142
  ;;
136
143
 
137
144
  restart)
138
- bundle exec cap "$@" deploy:restart
145
+ bundle exec cap "$@" deploy:lock deploy:restart
139
146
  ;;
140
147
 
141
148
  config)
142
- bundle exec cap "$@" deploy:config
149
+ bundle exec cap "$@" deploy:lock deploy:config
143
150
  ;;
144
151
 
145
152
  build)
146
- bundle exec cap "$@" deploy:build
153
+ bundle exec cap "$@" deploy:lock deploy:build
147
154
  ;;
148
155
 
149
156
  dist)
150
- bundle exec cap "$@" deploy:dist
157
+ bundle exec cap "$@" deploy:lock deploy:dist
151
158
  ;;
152
159
 
153
160
  activate)
154
- bundle exec cap "$@" deploy:symlink deploy:restart
161
+ bundle exec cap "$@" deploy:lock deploy:symlink deploy:restart
155
162
  ;;
156
163
 
157
164
  rollback)
158
- bundle exec cap "$@" deploy:rollback
165
+ bundle exec cap "$@" deploy:lock deploy:rollback
159
166
  ;;
160
167
 
161
168
  check)
162
- bundle exec cap "$@" deploy:check
163
- ;;
164
-
165
- compare)
166
- bundle exec cap "$@" deploy:compare
169
+ bundle exec cap "$@" deploy:lock deploy:check
167
170
  ;;
168
171
 
169
172
  plan)
170
- bundle exec cap "$@" deploy:plan
173
+ bundle exec cap "$@" deploy:lock deploy:plan
171
174
  ;;
172
175
 
173
176
  lock)
@@ -182,6 +185,14 @@ case "$(basename $0)" in
182
185
  bundle exec cap "$@" shell
183
186
  ;;
184
187
 
188
+ compare)
189
+ bundle exec cap "$@" deploy:compare
190
+ ;;
191
+
192
+ migrate)
193
+ bundle exec cap "$@" deploy:migrate
194
+ ;;
195
+
185
196
  *)
186
197
  bundle exec cap "$@"
187
198
  ;;
data/libexec/unlock CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/bin/bash -e
2
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
3
+ case "$(basename $0)" in
4
+ bump)
5
+ true
6
+ ;;
7
+ *)
8
+ hst_this=$(hostname -s)
9
+ if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
10
+ # unless the .ao_no_proxy file exists
11
+ if [[ ! -f ".ao_no_proxy" ]]; then
12
+ # ssh into deploy host and run from there
13
+ exec bin/proxy $(basename $0) "$@"
14
+ exit 1
15
+ fi
16
+ fi
17
+ ;;
18
+ esac
12
19
 
13
20
  export LOCAL_ONLY=true
14
21
 
@@ -123,51 +130,47 @@ case "$(basename $0)" in
123
130
  fi
124
131
  case "$(basename $0)" in
125
132
  deploy)
126
- bundle exec cap "$@" deploy
133
+ bundle exec cap "$@" deploy:lock deploy
127
134
  ;;
128
135
 
129
136
  release)
130
- bundle exec cap "$@" deploy
137
+ bundle exec cap "$@" deploy:lock deploy
131
138
  ;;
132
139
 
133
140
  stage)
134
- bundle exec cap "$@" deploy:update_code deploy:symlink_next
141
+ bundle exec cap "$@" deploy:lock deploy:update_code deploy:symlink_next
135
142
  ;;
136
143
 
137
144
  restart)
138
- bundle exec cap "$@" deploy:restart
145
+ bundle exec cap "$@" deploy:lock deploy:restart
139
146
  ;;
140
147
 
141
148
  config)
142
- bundle exec cap "$@" deploy:config
149
+ bundle exec cap "$@" deploy:lock deploy:config
143
150
  ;;
144
151
 
145
152
  build)
146
- bundle exec cap "$@" deploy:build
153
+ bundle exec cap "$@" deploy:lock deploy:build
147
154
  ;;
148
155
 
149
156
  dist)
150
- bundle exec cap "$@" deploy:dist
157
+ bundle exec cap "$@" deploy:lock deploy:dist
151
158
  ;;
152
159
 
153
160
  activate)
154
- bundle exec cap "$@" deploy:symlink deploy:restart
161
+ bundle exec cap "$@" deploy:lock deploy:symlink deploy:restart
155
162
  ;;
156
163
 
157
164
  rollback)
158
- bundle exec cap "$@" deploy:rollback
165
+ bundle exec cap "$@" deploy:lock deploy:rollback
159
166
  ;;
160
167
 
161
168
  check)
162
- bundle exec cap "$@" deploy:check
163
- ;;
164
-
165
- compare)
166
- bundle exec cap "$@" deploy:compare
169
+ bundle exec cap "$@" deploy:lock deploy:check
167
170
  ;;
168
171
 
169
172
  plan)
170
- bundle exec cap "$@" deploy:plan
173
+ bundle exec cap "$@" deploy:lock deploy:plan
171
174
  ;;
172
175
 
173
176
  lock)
@@ -182,6 +185,14 @@ case "$(basename $0)" in
182
185
  bundle exec cap "$@" shell
183
186
  ;;
184
187
 
188
+ compare)
189
+ bundle exec cap "$@" deploy:compare
190
+ ;;
191
+
192
+ migrate)
193
+ bundle exec cap "$@" deploy:migrate
194
+ ;;
195
+
185
196
  *)
186
197
  bundle exec cap "$@"
187
198
  ;;
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: 261
4
+ hash: 259
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 141
10
- version: 0.0.141
9
+ - 142
10
+ version: 0.0.142
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -129,6 +129,7 @@ files:
129
129
  - libexec/plan
130
130
  - libexec/compare
131
131
  - libexec/shell
132
+ - libexec/migrate
132
133
  - libexec/deploy
133
134
  - libexec/config
134
135
  - libexec/bump