cinch-deploy 1.0.2 → 1.0.3
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 +3 -4
- 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: 54464120ecb5f6306240221af2e7055e4d971529
|
4
|
+
data.tar.gz: 43574e6c9bf3e849bb5a1cabcc4280f3d12149f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f799d168f10a017044bb4875e8bd2c36e9c9a1d4e4cbd444ac1d46606e3aa614888d5e5f3db4f0f7f0dc2e74082b1247a3ba5cf78ccb8feee6ea191007a45001
|
7
|
+
data.tar.gz: 28fc7f0c457fb719e9ba6fac90d957eb74f2cff110473e092c41fb39265e1dabcaecbefaf9ba382bc324d16211f45d340638e6beca64f0fcc5f6e856896fcf3f
|
data/lib/cinch/plugins/deploy.rb
CHANGED
@@ -12,15 +12,14 @@ 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
|
-
m.reply line, true
|
15
|
+
m.reply "#{config[:command]} > #{line}", true
|
16
16
|
end
|
17
17
|
end
|
18
|
-
else
|
19
|
-
m.reply "ch:#{m.channel.to_s} usr:#{m.user.nick} msg:#{m.message}", true
|
20
18
|
end
|
21
19
|
end
|
22
20
|
rescue Exception => e
|
23
|
-
m.reply "exception: #{e.message}"
|
21
|
+
m.reply "#{config[:command]} - exception: #{e.message}"
|
22
|
+
puts e.backtrace
|
24
23
|
ensure
|
25
24
|
@running = nil
|
26
25
|
end
|