gitall 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitall/cli/app.rb +4 -4
- data/lib/gitall/plugins/admin.rb +2 -2
- data/lib/gitall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2125bfb18847ddc7a66a079a485b498edae5cb755feebc821955ef03c0f02da3
|
4
|
+
data.tar.gz: f1f8b823f7d332f80d59838e8cc68445dbc0e0edb9045e1050137b20bcd0991e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ee568d332eb358c248af960ba1cbedad5cbf6a23ebc53ab36aa960995fc3b155e2c990d79a460eafb62f47d0b06e0a9cbee7eaea27ac48c58c1ee5903b0f60
|
7
|
+
data.tar.gz: e4ba4a8c042f40cfe490e763ad6019bd199b503f80238a42dad791c33e8a3a86f954cb862daeab789c8345c4bde3b913a908a809a64ff294d0ea19a1ee73fdf3
|
data/lib/gitall/cli/app.rb
CHANGED
@@ -12,17 +12,17 @@ module GitAll
|
|
12
12
|
|
13
13
|
desc 'start [options]', 'Start GitAll'
|
14
14
|
def start
|
15
|
-
threads = []
|
15
|
+
$threads = []
|
16
16
|
GitAll::Bot::Bots.add_bots
|
17
17
|
GitAll::Bot::Bots.bots.each do |name, bot|
|
18
|
-
threads << Thread.new do
|
18
|
+
$threads << Thread.new do
|
19
19
|
bot.start
|
20
20
|
Thread.current.thread_variable_set(:network, name)
|
21
21
|
Thread.current.thread_variable_set(:bot, bot)
|
22
22
|
end
|
23
23
|
end
|
24
|
-
threads << Thread.new { GitAll::WebHook.run! }
|
25
|
-
threads.each(&:join)
|
24
|
+
$threads << Thread.new { GitAll::WebHook.run! }
|
25
|
+
$threads.each(&:join)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/gitall/plugins/admin.rb
CHANGED
@@ -44,12 +44,12 @@ class Admin
|
|
44
44
|
def do_Quit(m, msg = nil)
|
45
45
|
return unless authenticated? m
|
46
46
|
if msg.nil?
|
47
|
-
|
47
|
+
GitAll::Bot::Bots.bots.each do |net, bot|
|
48
48
|
info("Exiting from #{net}")
|
49
49
|
bot.quit('QUIT received!')
|
50
50
|
end
|
51
51
|
else
|
52
|
-
|
52
|
+
GitAll::Bot::Bots.bots.each do |net, bot|
|
53
53
|
info("Exiting from #{net}")
|
54
54
|
bot.quit(msg)
|
55
55
|
end
|
data/lib/gitall/version.rb
CHANGED