capistrano-karaf 1.6.12 → 1.6.13
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/capistrano-karaf/install.rb +25 -0
- metadata +2 -2
@@ -114,6 +114,31 @@ module Install
|
|
114
114
|
restart_failed_bundles
|
115
115
|
end
|
116
116
|
|
117
|
+
# Verify if all bundles are installed and started.
|
118
|
+
#
|
119
|
+
# Parameters
|
120
|
+
# - expected_bundles - A list of strings containing the bundle names.
|
121
|
+
#
|
122
|
+
# Example
|
123
|
+
# all_bundles_started? ["blub", "blubber"]
|
124
|
+
# # returns true
|
125
|
+
#
|
126
|
+
# Returns true when all bundles are correctly installed and started
|
127
|
+
def all_bundles_started? (expected_bundles)
|
128
|
+
installed_bundles = list_bundles.collect {|b| b[:name]}
|
129
|
+
not_installed_bundles = expected_bundles - installed_bundles
|
130
|
+
raise "The following bundles are missing: #{not_installed_bundles}" unless not_installed_bundles.empty?
|
131
|
+
|
132
|
+
wait_for_all_bundles do |b|
|
133
|
+
if expected_bundles.include? b[:name]
|
134
|
+
b[:context] == "Started"
|
135
|
+
else
|
136
|
+
true
|
137
|
+
end
|
138
|
+
end
|
139
|
+
true
|
140
|
+
end
|
141
|
+
|
117
142
|
# Extract the latest version from a maven-metadata file
|
118
143
|
#
|
119
144
|
# Parameters
|
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.13
|
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-
|
12
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: brecht.hoflack@gmail.com
|