cinch-deploy 1.0.0 → 1.0.1
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 +4 -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: 14abae79fc11f89f17ddb43a44493b68e03ab4d1
|
4
|
+
data.tar.gz: 60c2819619cea66660312c87812793826f88c394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0b8330b647143566a02d6a538b35cca7dca555fcaf443c9efab9b9cf444aaf4f9353b3bd2fee868605c837bbadc6341c55cc7d247ec7f32c5ed12f41786824
|
7
|
+
data.tar.gz: bc27588ebdcccc6d68d909c15aca1bca6c19e60144fa50ceb354da17be0699b350816594a79b0720b0cc498d55b2fff09d1025267897f5c179ce6c46900503d1
|
data/lib/cinch/plugins/deploy.rb
CHANGED
@@ -10,7 +10,7 @@ module Cinch
|
|
10
10
|
@running = true
|
11
11
|
config[:configurations].each do |config|
|
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
|
-
IO.popen(config[:command]) do |handle|
|
13
|
+
IO.popen("config[:command] 2>&1") do |handle|
|
14
14
|
while line = handle.gets
|
15
15
|
m.reply line, true
|
16
16
|
end
|
@@ -19,6 +19,9 @@ module Cinch
|
|
19
19
|
m.reply "ch:#{m.channel.to_s} usr:#{m.user.nick} msg:#{m.message}", true
|
20
20
|
end
|
21
21
|
end
|
22
|
+
rescue Exception => e
|
23
|
+
m.reply "exception: #{e.message}"
|
24
|
+
ensure
|
22
25
|
@running = nil
|
23
26
|
end
|
24
27
|
|