alpha_omega 1.3.33 → 1.3.34
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 +4 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.34
|
@@ -4,6 +4,10 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
4
4
|
namespace :deploy do
|
5
5
|
task :challenge do
|
6
6
|
if dna["app_env"] == "production"
|
7
|
+
unless ENV['FLAGS_tag'] && !(ENV['FLAGS_tag'].empty? || ENV['FLAGS_tag'] == "HEAD")
|
8
|
+
puts "Did not specify a tag for production via -t vX.Y.Z"
|
9
|
+
abort
|
10
|
+
end
|
7
11
|
|
8
12
|
a, b = rand(10), rand(10)
|
9
13
|
if Capistrano::CLI.ui.ask(" -- WARNING: Accessing production, please think: #{a} + #{b} = ").downcase.strip.to_i != (a + b)
|
@@ -11,11 +15,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
11
15
|
else
|
12
16
|
sleep(3)
|
13
17
|
end
|
14
|
-
|
15
|
-
unless ENV['FLAGS_tag'] && !(ENV['FLAGS_tag'].empty? || ENV['FLAGS_tag'] == "HEAD")
|
16
|
-
puts "Did not specify a tag for production"
|
17
|
-
abort
|
18
|
-
end
|
19
18
|
end
|
20
19
|
end
|
21
20
|
end
|
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: 95
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 34
|
10
|
+
version: 1.3.34
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|