spectre-ssh 1.1.0 → 1.2.0
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/lib/spectre/ssh.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 471635f940f6c5c48d2d7e5645dc869d21180fb8e4aadecf3c60982fc1eb343f
|
|
4
|
+
data.tar.gz: 6bbbff4e6993938a834e85d50541a95ab51ce2085e61d73eb073821a85256b78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de5f1b6829bbb9206d9d20e50bbedea9f037864e800e9fdf1bfebc1fbeacfcbadff2cd7bef9ce403687b23e22afe0a9f4ce10e1b2ee2b46b850fe3838de0237e
|
|
7
|
+
data.tar.gz: bd7c49933f0ef4f707261a1046dfbc0b66fc6b5c495f33d167da3b58a6fb48d23ceeb362f57638984830d4229693a145317303f5ad2d3443800266aaae6859a3
|
data/lib/spectre/ssh.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'net/ssh'
|
|
2
2
|
require 'logger'
|
|
3
3
|
require 'spectre'
|
|
4
|
-
|
|
4
|
+
require 'net/ssh/proxy/http'
|
|
5
5
|
|
|
6
6
|
module Spectre
|
|
7
7
|
module SSH
|
|
@@ -153,6 +153,10 @@ module Spectre
|
|
|
153
153
|
opts[:auth_methods].push 'publickey' unless opts[:keys].nil? or opts[:keys].empty?
|
|
154
154
|
opts[:auth_methods].push 'password' unless opts[:password].nil?
|
|
155
155
|
|
|
156
|
+
proxy_host = options[:proxy_host] || cfg['proxy_host']
|
|
157
|
+
proxy_port = options[:proxy_port] || cfg['proxy_port']
|
|
158
|
+
opts[:proxy] = Net::SSH::Proxy::HTTP.new(proxy_host, proxy_port) unless proxy_host.nil?
|
|
159
|
+
|
|
156
160
|
ssh_con = SSHConnection.new(host, username, opts, @@logger)
|
|
157
161
|
|
|
158
162
|
begin
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spectre-ssh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Neubauer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: openssl
|