specinfra 2.12.5 → 2.12.6

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: 7485c279b3a5227086b8a193d84baeb55ceef54c
4
- data.tar.gz: 6decd2a329490a3e9f6e4168c699ef15c4e085a8
3
+ metadata.gz: 3f0bb71f7536c470897e30877db4f068b9207e9f
4
+ data.tar.gz: 6a11dfe2bd47fad40cd77a70b8dd0ce3c591e61f
5
5
  SHA512:
6
- metadata.gz: 277cbda84bf1fd66e9cf3653000cb605b89b71e438426460120880760f0c920ecfbc12f58930bfa7dc8305ed738ba678fae1f3af22d445fe96eafa775ebfc359
7
- data.tar.gz: 92e59b457b284c96af4cac9f05e6818097a03ad50e6ece5913f2ef983a1f39082c80f77d3f502a0e80d017d9bbd6a9b99b1aba13030e0fec5ceb448b571bfb8c
6
+ metadata.gz: 9c17d89109d0129742603a8da037bf6c12aa802ccfea2fd1e0551489b3050b6674fd5458f2aac6f2b681d954964d8b0ae792f26cf8ca2435243a79ab334aa527
7
+ data.tar.gz: c2c2f574a739a0595e8e33da9fa769b46613a1cf41aa6b1a60ed8e539f35a5cf9a2555533a179b9e09bea5758d6d54d19dd07a5fe8d3ba55a89d5488c4c310a6
@@ -91,6 +91,12 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
91
91
  Backend::PowerShell::Command.new { exec cmd }
92
92
  end
93
93
 
94
+ def check_is_owned_by(file, owner)
95
+ Backend::PowerShell::Command.new do
96
+ exec %Q!(gci #{file}).GetAccessControl().Owner -eq '#{owner}'!
97
+ end
98
+ end
99
+
94
100
  private
95
101
  def item_has_attribute item, attribute
96
102
  %Q!((Get-Item -Path "#{item}" -Force).attributes.ToString() -Split ', ') -contains '#{attribute}'!
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.12.5"
2
+ VERSION = "2.12.6"
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.5
4
+ version: 2.12.6
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-08 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh