trebbiatrice 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/trebbiatrice/trebbiatrice.rb +8 -2
- data/lib/trebbiatrice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d64df67fc7516538b2c8bb487259796ec1b9caa2
|
4
|
+
data.tar.gz: d90efeb9af9273c8df565e806189cbd87d0a89fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c73fe821ed0a263b480be8ebb2ed78046aaa805932c2cb52bb50cd5e1d0a262307321b2a134bb84b36424c9a038b6c928825ba8848c31007b55ffe1b5da2bb01
|
7
|
+
data.tar.gz: 176f5472149147c85ebd5df0dca5713fe568e4a16944a57d8a2c140b1df280e45d2b9034ad189ab2886f393de279600bbce52aa5d1de60cdfb944827a69605ba
|
data/README.md
CHANGED
@@ -4,6 +4,12 @@ module Trebbiatrice
|
|
4
4
|
trebbia = Trebbia.new(login_data)
|
5
5
|
last_project, project = nil
|
6
6
|
|
7
|
+
trap('INT') do
|
8
|
+
puts 'Stopping gracefully the trebbiatrice...'
|
9
|
+
trebbia.stop_tracking! if trebbia.tracking?
|
10
|
+
exit
|
11
|
+
end
|
12
|
+
|
7
13
|
loop do
|
8
14
|
response = Trebbia.invoke!(testata[:engine], testata[:name])
|
9
15
|
|
@@ -14,7 +20,7 @@ module Trebbiatrice
|
|
14
20
|
|
15
21
|
if response[:status] == 'failure' || !trebbia.working_on
|
16
22
|
if trebbia.tracking?
|
17
|
-
|
23
|
+
puts "stopping #{trebbia.project[:name]}" if trebbia.project
|
18
24
|
trebbia.stop_tracking!
|
19
25
|
end
|
20
26
|
|
@@ -25,7 +31,7 @@ module Trebbiatrice
|
|
25
31
|
trebbia.track! task
|
26
32
|
|
27
33
|
last_project = trebbia.working_on
|
28
|
-
|
34
|
+
puts "tracking #{trebbia.project[:name]}"
|
29
35
|
end
|
30
36
|
end
|
31
37
|
|
data/lib/trebbiatrice/version.rb
CHANGED