alpha_omega 1.3.37 → 1.3.38
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/alpha_omega/config/deploy_challenge.rb +7 -5
- data/libexec/_ao +5 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.38
|
@@ -9,11 +9,13 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
9
9
|
abort
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
unless ENV['FLAGS_reviewer'] && active_path_name == current_path_name
|
13
|
+
a, b = rand(10), rand(10)
|
14
|
+
if Capistrano::CLI.ui.ask(" -- WARNING: Accessing production, please think: #{a} + #{b} = ").downcase.strip.to_i != (a + b)
|
15
|
+
abort
|
16
|
+
else
|
17
|
+
sleep(3)
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
data/libexec/_ao
CHANGED
@@ -18,6 +18,7 @@ DEFINE_string "user" "" "app user override" "u"
|
|
18
18
|
DEFINE_string "group" "" "app group override" "g"
|
19
19
|
DEFINE_string "ssh_login" "" "ssh login override" "l"
|
20
20
|
DEFINE_boolean "migrations" "$FLAGS_FALSE" "run development migrations" "M"
|
21
|
+
DEFINE_string "reviewer" "" "who has reviewed the production version" "R"
|
21
22
|
|
22
23
|
# entry point
|
23
24
|
function main {
|
@@ -137,6 +138,10 @@ function main {
|
|
137
138
|
export FLAGS_tag
|
138
139
|
fi
|
139
140
|
|
141
|
+
if [[ -n "$FLAGS_reviewer" ]]; then
|
142
|
+
export FLAGS_reviewer
|
143
|
+
fi
|
144
|
+
|
140
145
|
aomain "$nm_pod" "$@"
|
141
146
|
else
|
142
147
|
if [[ "$#" > 0 ]]; then
|
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:
|
4
|
+
hash: 87
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 38
|
10
|
+
version: 1.3.38
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|