specinfra 2.12.6 → 2.12.7
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: 481871a1216b636632065d30fcf6b7596ba048aa
|
4
|
+
data.tar.gz: 8b831e0e5643609a50d0c66316b3cb1066f1a854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17573c8d4461b8cb06402f2ee75099f570b5a4cda08ff2f3e8217e2e2777558d9432241ea49d8e9a5bf17024701a1bf4adec5425e6c4b51cc8c1c6c9d6fe64db
|
7
|
+
data.tar.gz: 7b4e8b108300c812afe9188943c4f11d641c9ad4ec55c65498bbd412e36249641da62e297af04e217b3000ffe995c25a40631ce7a63f2c1c7af7a161008cba3c
|
@@ -5,7 +5,7 @@ class Specinfra::Command::Linux::Base::Interface < Specinfra::Command::Base::Int
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def get_speed_of(name)
|
8
|
-
"
|
8
|
+
"cat /sys/class/net/#{name}/speed"
|
9
9
|
end
|
10
10
|
|
11
11
|
def check_has_ipv4_address(interface, ip_address)
|
@@ -93,7 +93,8 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
|
|
93
93
|
|
94
94
|
def check_is_owned_by(file, owner)
|
95
95
|
Backend::PowerShell::Command.new do
|
96
|
-
exec
|
96
|
+
exec "if((Get-Item '#{file}').GetAccessControl().Owner -match '#{owner}'
|
97
|
+
-or ((Get-Item '#{file}').GetAccessControl().Owner -match '#{owner}').Length -gt 0){ exit 0 } else { exit 1 }"
|
97
98
|
end
|
98
99
|
end
|
99
100
|
|
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.12.
|
4
|
+
version: 2.12.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|