alpha_omega 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/alpha_omega/utils.rb +7 -7
- data/lib/alpha_omega/version.rb +1 -1
- metadata +3 -3
data/lib/alpha_omega/utils.rb
CHANGED
|
@@ -21,15 +21,15 @@ module AlphaOmega
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
AlphaOmega.what_groups hosts do |task_name, nodes|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
config.task "#{task_name}.#{pod_name}" do
|
|
25
|
+
unless mix_pods
|
|
26
|
+
if last_pod && last_pod != pod_name
|
|
27
|
+
puts "ERROR: cannot call tasks that mix different dc_env (last pod = #{last_pod}, current pod = #{pod_name})"
|
|
28
|
+
exit 1
|
|
29
|
+
end
|
|
28
30
|
end
|
|
29
|
-
end
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
config.task "#{task_name}.#{pod_name}" do
|
|
32
|
+
set :last_pod, pod_name
|
|
33
33
|
nodes.keys.sort.each do |remote_name|
|
|
34
34
|
role :app, remote_name
|
|
35
35
|
end
|
data/lib/alpha_omega/version.rb
CHANGED
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: 105
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 59
|
|
10
|
+
version: 0.0.59
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David Nghiem
|