depengine 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 "Can not execute remote command: '#{command}'"
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
- raise "could not execute command" if type.nil?
36
- $log.writer.info type
37
- $log.writer.info data
38
- # if type.nil?
39
- # $log.writer.debug "Command successfully executed"
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
 
@@ -1,3 +1,3 @@
1
1
  module Depengine
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
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: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 16
10
- version: 0.0.16
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-15 00:00:00 +02:00
18
+ date: 2013-08-21 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency