aubergine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/courgette/device.rb +2 -1
- data/lib/courgette/executor.rb +5 -1
- data/lib/courgette.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2777d9fa63ef0fb21679ded2cd4fa0ac29df1b04
|
4
|
+
data.tar.gz: f2a55afbf0cd9825f5463b071462dcf6ee0bfd9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37980fe0172007d19ad5f4d105097b74c8cea0de65cee57afbac53e22fbb966306093317a85ac6aa6aaebbd9698f6f914c7b18fab8f7c9bd4806e2c8320b302f
|
7
|
+
data.tar.gz: 91d2bcc4929030e5732166a25a68a78373b06f1e5f7e7332700b101a1cf7b67bb7d73b7eea4f222f51b15c71cd7be0e8d1c54a99a5b1bd4b6f077f3df324d970
|
data/lib/courgette/device.rb
CHANGED
data/lib/courgette/executor.rb
CHANGED
@@ -10,7 +10,11 @@ module Courgette
|
|
10
10
|
|
11
11
|
def launch!(filter)
|
12
12
|
Parallel.each(client.devices.select { |device| filter.call(device) }, in_threads: @executors) do |device|
|
13
|
-
|
13
|
+
begin
|
14
|
+
Timeout::timeout(240) { fetch_and_update(device) }
|
15
|
+
rescue
|
16
|
+
logger.info "#{device.ip} execution too long (timeout)"
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
16
20
|
|
data/lib/courgette.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aubergine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Rose
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0
|
19
|
+
version: 0.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0
|
26
|
+
version: 0.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: git
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|