foreplay 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreplay/deploy.rb +5 -2
- data/lib/foreplay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e751ad23747f00c840955181533e6ee7c9339eea
|
4
|
+
data.tar.gz: 432e033d4951ad035dd3be360345db6d0e7a9f60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e8c6c421f72e7c60caf6ab03d0cfd6cbc25c3b9416de90dda20b1618d0086d1c60c9bc26ce09816b6b38e54e81dd1eb9e1315298e24d3063658480fb4bc64f2
|
7
|
+
data.tar.gz: b3408e3e3923c181bab03723449f424338e9915e21278b11cf6b9f0bbf6cb421f235dcb88b7d94045e5a880f2e14baf0b3fefaf21c653693a2e62ce935ec4ebe
|
data/lib/foreplay/deploy.rb
CHANGED
@@ -55,6 +55,7 @@ module Foreplay
|
|
55
55
|
|
56
56
|
defaults = Foreplay::Utility.supermerge(defaults, config_all[DEFAULTS_KEY]) if config_all.key? DEFAULTS_KEY
|
57
57
|
defaults = Foreplay::Utility.supermerge(defaults, config_env[DEFAULTS_KEY]) if config_env.key? DEFAULTS_KEY
|
58
|
+
threads = []
|
58
59
|
|
59
60
|
config_env.each do |role, additional_instructions|
|
60
61
|
next if role == DEFAULTS_KEY # 'defaults' is not a role
|
@@ -73,9 +74,11 @@ module Foreplay
|
|
73
74
|
# Apply server filter
|
74
75
|
instructions[:servers] &= server_filter if server_filter
|
75
76
|
|
76
|
-
deploy_role
|
77
|
+
threads.concat deploy_role(instructions)
|
77
78
|
end
|
78
79
|
|
80
|
+
threads.each { |thread| thread.join }
|
81
|
+
|
79
82
|
puts mode == :deploy ? 'Finished deployment' : 'Deployment configuration check was successful'
|
80
83
|
end
|
81
84
|
|
@@ -93,7 +96,7 @@ module Foreplay
|
|
93
96
|
end
|
94
97
|
|
95
98
|
servers.each { |server| threads << Thread.new { deploy_to_server server, instructions } }
|
96
|
-
threads
|
99
|
+
threads
|
97
100
|
end
|
98
101
|
|
99
102
|
def deploy_to_server(server_port, instructions)
|
data/lib/foreplay/version.rb
CHANGED