continuent-tools-core 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/lib/continuent-tools-core.rb +8 -8
- data/lib/tungsten/install.rb +1 -1
- data/lib/tungsten/util.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc877f6c4fc1d24cf76c6b6a0eb8cea7bffe14a0
|
4
|
+
data.tar.gz: 1b0cf2c4aeabc5d44475b7959bb5d21dc53af90f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34001efb0e766f5258ee514a3e8db5817af9bfe3d39c14817b754718c135fd8450c62a310e25b712a13543573eec7bb9340876cabc62c2717290929bcf29a034
|
7
|
+
data.tar.gz: 1f85017ebab7a298b35e285750eafd04b19a4a81d67560e61cf86f5a22d0d917ce14f7acc5d3d90b2b5bcb461ff0bb79dc6fd037d6e6d996f940d540b3eeec36
|
@@ -156,17 +156,17 @@ end
|
|
156
156
|
|
157
157
|
class Array
|
158
158
|
def peach(&block)
|
159
|
-
|
160
|
-
|
161
|
-
idx = 0
|
162
|
-
|
159
|
+
threads = []
|
160
|
+
|
163
161
|
self.each{
|
164
162
|
|i|
|
165
|
-
|
166
|
-
|
163
|
+
threads << Thread.new(i) {
|
164
|
+
|member|
|
165
|
+
block.call(member)
|
167
166
|
}
|
168
|
-
idx = idx+1
|
169
167
|
}
|
170
|
-
|
168
|
+
|
169
|
+
threads.each{|t| t.join() }
|
170
|
+
self
|
171
171
|
end
|
172
172
|
end
|
data/lib/tungsten/install.rb
CHANGED
@@ -234,7 +234,7 @@ class TungstenInstall
|
|
234
234
|
end
|
235
235
|
|
236
236
|
def trepctl_value(service, key)
|
237
|
-
TU.cmd_result("#{trepctl(service)} status | grep #{key} | awk -F: '{print $
|
237
|
+
TU.cmd_result("#{trepctl(service)} status | grep #{key} | awk -F: '{ st = index($0,\":\");print substr($0,st+1)}' | tr -d ' '")
|
238
238
|
end
|
239
239
|
|
240
240
|
def trepctl_property(service, key)
|
data/lib/tungsten/util.rb
CHANGED
@@ -9,6 +9,7 @@ class TungstenUtil
|
|
9
9
|
@previous_option_arguments = {}
|
10
10
|
@ssh_options = {}
|
11
11
|
@display_help = false
|
12
|
+
@error_mutex = Mutex.new
|
12
13
|
@num_errors = 0
|
13
14
|
@force = false
|
14
15
|
@json_interface = false
|
@@ -182,7 +183,9 @@ class TungstenUtil
|
|
182
183
|
end
|
183
184
|
|
184
185
|
if level == Logger::ERROR
|
185
|
-
@
|
186
|
+
@error_mutex.synchronize do
|
187
|
+
@num_errors = @num_errors + 1
|
188
|
+
end
|
186
189
|
|
187
190
|
if force?()
|
188
191
|
level = Logger::WARN
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: continuent-tools-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Continuent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_pure
|