depengine 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/depengine/publisher/ssh.rb +8 -10
- data/lib/depengine/version.rb +1 -1
- metadata +4 -4
@@ -27,24 +27,22 @@ module Publisher
|
|
27
27
|
session.open_channel do |ch|
|
28
28
|
ch.exec command do |ch, success|
|
29
29
|
if not success
|
30
|
-
$log.writer.error "
|
30
|
+
$log.writer.error "could not execute remote command: '#{command}'"
|
31
31
|
exit 1
|
32
32
|
end
|
33
33
|
|
34
34
|
ch.on_data do |ch, type, data|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
# else
|
41
|
-
# $log.writer.debug data
|
42
|
-
# end
|
35
|
+
if type.nil?
|
36
|
+
$log.writer.info "Warning: Maybe successfully executed but no output found"
|
37
|
+
else
|
38
|
+
$log.writer.info type.strip
|
39
|
+
end
|
43
40
|
end
|
44
41
|
|
45
42
|
ch.on_extended_data do |ch, type, data|
|
46
43
|
$log.writer.error "could not execute command"
|
47
|
-
$log.writer.error data
|
44
|
+
$log.writer.error data.strip
|
45
|
+
$log.writer.error type.strip
|
48
46
|
exit 1
|
49
47
|
end
|
50
48
|
|
data/lib/depengine/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 17
|
10
|
+
version: 0.0.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Team Automatisierung
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-08-
|
18
|
+
date: 2013-08-21 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|