capistrano-karaf 1.6.6 → 1.6.7
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.
@@ -92,6 +92,8 @@ module Capistrano_Karaf
|
|
92
92
|
puts "Some bundles are still failing the predicate"
|
93
93
|
sleep args[:sleeptime]
|
94
94
|
end
|
95
|
+
|
96
|
+
raise 'Not all bundles pass the predicate within the timeout' unless list_bundles.all? { |b| pred.call b }
|
95
97
|
end
|
96
98
|
|
97
99
|
# Wait till the predicate passes for a bundle
|
@@ -115,6 +117,8 @@ module Capistrano_Karaf
|
|
115
117
|
puts "Bundle not yet started"
|
116
118
|
sleep args[:sleeptime]
|
117
119
|
end
|
120
|
+
|
121
|
+
raise 'Not all bundles pass the predicate within the timeout' unless list_bundles.none? { |b| pred.call b }
|
118
122
|
end
|
119
123
|
|
120
124
|
# Verify if a feature is installed
|
@@ -217,7 +217,7 @@ module Install
|
|
217
217
|
end
|
218
218
|
|
219
219
|
def ensure_all_bundles_are_stopped (level_before_upgrade)
|
220
|
-
wait_for_all_bundles(:timeout =>
|
220
|
+
wait_for_all_bundles(:timeout => 600, :sleeptime => 10) do |b|
|
221
221
|
if b[:level].to_i > level_before_upgrade
|
222
222
|
["Resolved", "Installed"].include? b[:status]
|
223
223
|
else
|
@@ -227,7 +227,7 @@ module Install
|
|
227
227
|
end
|
228
228
|
|
229
229
|
def ensure_all_bundles_are_restarted (level_before_upgrade, initial_level)
|
230
|
-
wait_for_all_bundles(:timeout =>
|
230
|
+
wait_for_all_bundles(:timeout => 600, :sleeptime => 10) do |b|
|
231
231
|
if (b[:level].to_i > level_before_upgrade and
|
232
232
|
b[:level].to_i <= initial_level)
|
233
233
|
["Active","Resolved"].include? b[:status]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-karaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: brecht.hoflack@gmail.com
|