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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b019d7002830c0b6dcdc6841fab98bc93dd226dd
4
- data.tar.gz: a82306548df264f90c1f5b3221feaecbd0067238
3
+ metadata.gz: e751ad23747f00c840955181533e6ee7c9339eea
4
+ data.tar.gz: 432e033d4951ad035dd3be360345db6d0e7a9f60
5
5
  SHA512:
6
- metadata.gz: 171786e587f728fc53df63805cea7bb7097ad0aa855382fc891b29d94b02224d61154eff2884c7aa8b4f9e275a12e5cd215ba82d797ccf6c0f7043eb97a4f8fe
7
- data.tar.gz: 23907fd2f6aaca3343c9286be4ef39afc22cb4a7469cc3e3b02b70d642d9d1620f1f94a6d307afe6a42824b285f9773406fa0ba29d558d3cdae7694a50588c52
6
+ metadata.gz: 8e8c6c421f72e7c60caf6ab03d0cfd6cbc25c3b9416de90dda20b1618d0086d1c60c9bc26ce09816b6b38e54e81dd1eb9e1315298e24d3063658480fb4bc64f2
7
+ data.tar.gz: b3408e3e3923c181bab03723449f424338e9915e21278b11cf6b9f0bbf6cb421f235dcb88b7d94045e5a880f2e14baf0b3fefaf21c653693a2e62ce935ec4ebe
@@ -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 instructions
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.each { |thread| thread.join }
99
+ threads
97
100
  end
98
101
 
99
102
  def deploy_to_server(server_port, instructions)
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto