pushwagner 0.0.2.4 → 0.0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pushwagner/hooks.rb +7 -3
- data/lib/pushwagner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c02ebe9ce911be883d12531506ec98e03773a02b
|
|
4
|
+
data.tar.gz: fcd393f3fa1e65db79bace80410f2bbf99789854
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 167cbf1595fb16414147ac171bc488908616d22b9105d146d44c22352eea210aa821e1b7072787851d7bd3be7558fe63151cee56d7496200872ce72d4703b7ee
|
|
7
|
+
data.tar.gz: 0faf6b816e34d7665587b2d0fc889a4c69d337cce789d6e9f462d21de33913634d0d4afd573ec3ca13bee6598d2601ce820be8ca7572891c337d1c3bc420a8b9
|
data/Gemfile.lock
CHANGED
data/lib/pushwagner/hooks.rb
CHANGED
|
@@ -82,16 +82,20 @@ module Pushwagner
|
|
|
82
82
|
ssh.open_channel do |ch|
|
|
83
83
|
|
|
84
84
|
ch.request_pty do |pty_ch, success|
|
|
85
|
-
raise "could not execute #{cmd}" unless success
|
|
85
|
+
raise "FATAL: could not execute #{cmd}" unless success
|
|
86
86
|
|
|
87
87
|
puts
|
|
88
88
|
|
|
89
|
-
ch.exec("#{cmd}")
|
|
89
|
+
ch.exec("#{cmd}") do |ch, success_exec|
|
|
90
|
+
raise "FATAL: failed on execution of #{cmd}" unless success_exec
|
|
91
|
+
end
|
|
90
92
|
|
|
91
|
-
ch.
|
|
93
|
+
ch.on_extended_data do |data_ch, type, data|
|
|
92
94
|
if data =~ /\[sudo\] password/i
|
|
93
95
|
gets_sudo_passwd unless sudo
|
|
94
96
|
ch.send_data("#{sudo}\n")
|
|
97
|
+
elsif type == :stderr
|
|
98
|
+
print "ERROR: #{data}"
|
|
95
99
|
else
|
|
96
100
|
print data
|
|
97
101
|
end
|
data/lib/pushwagner/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pushwagner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.2.
|
|
4
|
+
version: 0.0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ole Christian Rynning
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-ssh
|