cinch-deploy 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cinch/plugins/deploy.rb +2 -3
- 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: 45a0f8f0d40417a383245e3264d213824248ebd6
|
4
|
+
data.tar.gz: 4ab32e9c7f8c433696a48a87cbf952c5f4803180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aacb2604aefe74d49edcc4a6f758273976be9a0366478c480bf80cfc03f706d74db29d2129c7ade12add74fa7425c70ebe3b5e15bd5c31c1bce10a438ed59549
|
7
|
+
data.tar.gz: f4e24bc44220c243b342ada46e00c283868d1200d40141c6d7064512e1e07c67238b64ba190360976d525d4809735ff5d4093880d2ac8b33a7fb7969a71dc3e7
|
data/lib/cinch/plugins/deploy.rb
CHANGED
@@ -12,14 +12,13 @@ module Cinch
|
|
12
12
|
if config[:channels].include?(m.channel.to_s) and config[:users].include?(m.user.nick) and m.message =~ Regexp.new(config[:trigger])
|
13
13
|
IO.popen("#{config[:command]} 2>&1") do |handle|
|
14
14
|
while line = handle.gets
|
15
|
-
#
|
16
|
-
m.reply "#{m.user.nick}: #{config[:command]} > #{line}"
|
15
|
+
m.reply "#{config[:command]} > #{line}", true
|
17
16
|
end
|
18
17
|
end
|
19
18
|
end
|
20
19
|
end
|
21
20
|
rescue Exception => e
|
22
|
-
m.reply "#{config[:command]} - exception: #{e.message}"
|
21
|
+
m.reply "#{config[:command]} - exception: #{e.message}", true
|
23
22
|
puts e.backtrace
|
24
23
|
ensure
|
25
24
|
@running = nil
|