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: 3f0bb71f7536c470897e30877db4f068b9207e9f
4
- data.tar.gz: 6a11dfe2bd47fad40cd77a70b8dd0ce3c591e61f
3
+ metadata.gz: 481871a1216b636632065d30fcf6b7596ba048aa
4
+ data.tar.gz: 8b831e0e5643609a50d0c66316b3cb1066f1a854
5
5
  SHA512:
6
- metadata.gz: 9c17d89109d0129742603a8da037bf6c12aa802ccfea2fd1e0551489b3050b6674fd5458f2aac6f2b681d954964d8b0ae792f26cf8ca2435243a79ab334aa527
7
- data.tar.gz: c2c2f574a739a0595e8e33da9fa769b46613a1cf41aa6b1a60ed8e539f35a5cf9a2555533a179b9e09bea5758d6d54d19dd07a5fe8d3ba55a89d5488c4c310a6
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
- "ethtool #{name} | grep Speed | gawk '{print gensub(/Speed: ([0-9]+)Mb\\\/s/,\"\\\\1\",\"\")}'"
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 %Q!(gci #{file}).GetAccessControl().Owner -eq '#{owner}'!
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
 
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.12.6"
2
+ VERSION = "2.12.7"
3
3
  end
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.6
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-10 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh