specinfra 2.34.4 → 2.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/appveyor.yml +57 -0
- data/lib/specinfra/command/windows/base/file.rb +8 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8054c5ab30dcfb9ac19f5bdd7cc59b9498740bc
|
4
|
+
data.tar.gz: 9a7fa2c786996cee9688d2b5a00f87c0b073ee75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf761b1651b9b7988a56fa9ecb56c441702260ef0133f1cfc0d04fd0f6ff1c3d9e9833d9aec84e02e24f683b5a5e37b12ea4f6b943313295b322096fcb51eb5
|
7
|
+
data.tar.gz: 43f76a008961233d893ff7c3c4b00b5d561fe304b1addd0dbe0259afb23beca80ba06233c5a7e9aab8eb36aba4de950f257738e8edae6891f023bc8e67b80005
|
data/appveyor.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
version: "{build}"
|
2
|
+
|
3
|
+
os: Windows Server 2012
|
4
|
+
platform:
|
5
|
+
- x64
|
6
|
+
|
7
|
+
environment:
|
8
|
+
bundle_gemfile: integration-test/Gemfile.winrm
|
9
|
+
bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem
|
10
|
+
|
11
|
+
matrix:
|
12
|
+
- ruby_version: "193"
|
13
|
+
- ruby_version: "200"
|
14
|
+
- ruby_version: "21"
|
15
|
+
- ruby_version: "22"
|
16
|
+
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- ruby_version: "22" # waiting for net-ssh update
|
20
|
+
|
21
|
+
clone_depth: 5
|
22
|
+
|
23
|
+
cache:
|
24
|
+
- C:\Ruby193\lib\ruby\gems\1.9.1
|
25
|
+
- C:\Ruby193\bin
|
26
|
+
- C:\Ruby200\lib\ruby\gems\2.0.0
|
27
|
+
- C:\Ruby200\bin
|
28
|
+
- C:\Ruby21\lib\ruby\gems\2.1.0
|
29
|
+
- C:\Ruby21\bin
|
30
|
+
- C:\Ruby22\lib\ruby\gems\2.2.0
|
31
|
+
- C:\Ruby22\bin
|
32
|
+
|
33
|
+
install:
|
34
|
+
- git submodule update --init --recursive
|
35
|
+
- ps: Enable-PSRemoting -Force
|
36
|
+
- ps: Set-ExecutionPolicy RemoteSigned
|
37
|
+
- winrm quickconfig -q
|
38
|
+
- winrm set winrm/config/client @{TrustedHosts="*"}
|
39
|
+
- winrm set winrm/config/client/auth @{Basic="true"}
|
40
|
+
- winrm set winrm/config/service/auth @{Basic="true"}
|
41
|
+
- winrm set winrm/config/service @{AllowUnencrypted="true"}
|
42
|
+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
43
|
+
- echo %PATH%
|
44
|
+
- ruby --version
|
45
|
+
- gem --version
|
46
|
+
- appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem
|
47
|
+
- gem install --local bundler.gem --no-ri --no-rdoc ## appveyor often stops `gem install bundler`..?
|
48
|
+
|
49
|
+
build_script:
|
50
|
+
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exists?(File.join(Gem.dir, "cache", "bundler"))'
|
51
|
+
- bundle install --jobs 3 --retry 3
|
52
|
+
- net user
|
53
|
+
- net localgroup
|
54
|
+
|
55
|
+
test_script:
|
56
|
+
- net user appveyor %WINDOWS_PASSWORD% # set by webui
|
57
|
+
- bundle exec rspec -fd --backtrace -r .\integration-test\winrm\spec_helper.rb .\integration-test\winrm
|
@@ -39,6 +39,14 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
|
|
39
39
|
%Q!Get-Content("#{file}") | Out-String!
|
40
40
|
end
|
41
41
|
|
42
|
+
def get_md5sum(file)
|
43
|
+
<<-EOT
|
44
|
+
$md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
|
45
|
+
$sum = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes("#{file}")))
|
46
|
+
echo $sum.ToLower().Replace("-","")
|
47
|
+
EOT
|
48
|
+
end
|
49
|
+
|
42
50
|
def check_is_accessible_by_user(file, user, access)
|
43
51
|
case access
|
44
52
|
when 'r'
|
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.34.
|
4
|
+
version: 2.34.5
|
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-
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- LICENSE.txt
|
110
110
|
- README.md
|
111
111
|
- Rakefile
|
112
|
+
- appveyor.yml
|
112
113
|
- examples/multiple_backends.rb
|
113
114
|
- lib/specinfra.rb
|
114
115
|
- lib/specinfra/backend.rb
|
@@ -494,3 +495,4 @@ test_files:
|
|
494
495
|
- spec/helper/set_spec.rb
|
495
496
|
- spec/host_inventory/cpu_spec.rb
|
496
497
|
- spec/spec_helper.rb
|
498
|
+
has_rdoc:
|