specinfra 2.82.13 → 2.82.18
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cd4b036255cf5aafd4a11a9e48572fb9a37dd3b3eb1164b0709c7c2cf9fbd845
|
4
|
+
data.tar.gz: e1d9485748df7c5f3795fcb33b897b061406accaa6586d701b325d3dd1c358aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4efcf6f4a73749f41ec0e9a53376809ee9db4965524ccc3f0eefc5f7ab952c0644ea85df1124524b193a80e8c9d23461c497929d3864f0198c9aa28914c03d
|
7
|
+
data.tar.gz: 87069e6caf693b955ee1fffb46d5fd6d2172895ca6d7bd40283f67aa397ada2a2b503e2885cca720cd7f1026ec4f77706ffcb28bb59870ac9928c8ece35a9c17
|
@@ -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
|
|
@@ -34,6 +34,10 @@ class Specinfra::Command::Darwin::Base::File < Specinfra::Command::Base::File
|
|
34
34
|
def get_mode(file)
|
35
35
|
"stat -f%Lp #{escape(file)}"
|
36
36
|
end
|
37
|
+
|
38
|
+
def get_size(file)
|
39
|
+
"stat -f %z #{escape(file)}"
|
40
|
+
end
|
37
41
|
|
38
42
|
def get_owner_user(file)
|
39
43
|
"stat -f %Su #{escape(file)}"
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|
@@ -613,7 +613,7 @@ homepage: https://github.com/mizzy/specinfra
|
|
613
613
|
licenses:
|
614
614
|
- MIT
|
615
615
|
metadata: {}
|
616
|
-
post_install_message:
|
616
|
+
post_install_message:
|
617
617
|
rdoc_options: []
|
618
618
|
require_paths:
|
619
619
|
- lib
|
@@ -628,9 +628,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
628
628
|
- !ruby/object:Gem::Version
|
629
629
|
version: '0'
|
630
630
|
requirements: []
|
631
|
-
|
632
|
-
|
633
|
-
signing_key:
|
631
|
+
rubygems_version: 3.1.2
|
632
|
+
signing_key:
|
634
633
|
specification_version: 4
|
635
634
|
summary: Common layer for serverspec and itamae
|
636
635
|
test_files:
|