specinfra 2.82.15 → 2.82.16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 081c5fe3e3d544ed5e60bab131c08253c686a159
|
4
|
+
data.tar.gz: 410cef0c65354b9e3de79aa4fd1a496650067512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 851092951f6e2c01b78ac3dc11ca74263fd7f3257966c9e44ec9d75398ea1b78bdd489274f584f4c687b5008ed94529151fdc854580c5626a27068d11f432bd2
|
7
|
+
data.tar.gz: c3bd863bd7b130e33c3e3e3a68650347c9cf4b6459fea435a2b6fa90f8b12b1d92ac00dc73f22bb4f3d024ec1839f4b3154aa2aea5602cfc789ec45400bcc9e8
|
@@ -5,9 +5,10 @@ function IsPortListening
|
|
5
5
|
$networkIPs = (Get-WmiObject Win32_NetworkAdapterConfiguration | ? {$_.IPEnabled}) | %{ $_.IPAddress[0] }
|
6
6
|
[array] $networkIPs += "0.0.0.0"
|
7
7
|
[array] $networkIPs += "127.0.0.1"
|
8
|
+
[array] $networkIPs += "[::1]"
|
8
9
|
foreach ($ipaddress in $networkIPs)
|
9
10
|
{
|
10
|
-
$matchExpression = ("$ipaddress" + ":" + $portNumber)
|
11
|
+
$matchExpression = ("$ipaddress" + ":" + $portNumber + ".*LISTENING")
|
11
12
|
if ($protocol) { $matchExpression = ($protocol.toUpper() + "\s+$matchExpression") }
|
12
13
|
if ($netstatOutput -match $matchExpression) { return $true }
|
13
14
|
}
|
@@ -73,10 +73,16 @@ module Specinfra
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def create_ssh
|
76
|
+
options = get_config(:ssh_options)
|
77
|
+
|
78
|
+
if !Net::SSH::VALID_OPTIONS.include?(:strict_host_key_checking)
|
79
|
+
options.delete(:strict_host_key_checking)
|
80
|
+
end
|
81
|
+
|
76
82
|
Net::SSH.start(
|
77
83
|
get_config(:host),
|
78
|
-
|
79
|
-
|
84
|
+
options[:user],
|
85
|
+
options
|
80
86
|
)
|
81
87
|
end
|
82
88
|
|
data/lib/specinfra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.82.
|
4
|
+
version: 2.82.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|