vagrant-windows-update 0.0.6 → 0.0.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f51d834ca669ad940e5b0bfbe02ab30b9a2d072e
|
|
4
|
+
data.tar.gz: de364659592c09ab6a5ec051036acc1680e6d049
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c46f49b400359b38bc96ce2e403f56b0c486b8b3e52c515a87ce983741026d4d0c0aff741543176b3c5323b906a8fb88074756bf5062046b1a1826405516e0a1
|
|
7
|
+
data.tar.gz: 9c1827736ebed973635d946a0e8f6dd4418b2955075a69c0d66ea91e193760a01a51339df983bfd2f64304fd4da89fd70c0684b26e250b46aa87f64d0d4f4b7a
|
|
@@ -19,13 +19,16 @@ module VagrantPlugins
|
|
|
19
19
|
config("windows-update", :provisioner) do
|
|
20
20
|
class Config < Vagrant.plugin("2", :config)
|
|
21
21
|
attr_accessor :filters
|
|
22
|
+
attr_accessor :keep_color
|
|
22
23
|
|
|
23
24
|
def initialize
|
|
24
25
|
@filters = UNSET_VALUE
|
|
26
|
+
@keep_color = UNSET_VALUE
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
def finalize!
|
|
28
30
|
@filters = ['include:$_.AutoSelectOnWebSites'] if @filters == UNSET_VALUE
|
|
31
|
+
@keep_color = false if @keep_color == UNSET_VALUE
|
|
29
32
|
end
|
|
30
33
|
|
|
31
34
|
def validate(machine)
|
|
@@ -46,7 +46,7 @@ if ($mock) {
|
|
|
46
46
|
Write-Output "Synthetic reboot countdown counter is at $count"
|
|
47
47
|
Set-Content $mockWindowsUpdatePath (--$count)
|
|
48
48
|
Write-Output 'Rebooting...'
|
|
49
|
-
ExitWithCode
|
|
49
|
+
ExitWithCode 0
|
|
50
50
|
}
|
|
51
51
|
Write-Output 'No Windows updates found'
|
|
52
52
|
ExitWithCode 0
|
|
@@ -108,7 +108,7 @@ function ExitWhenRebootRequired($rebootRequired = $false) {
|
|
|
108
108
|
Write-Output 'Pending Reboot detected. Waiting for the Windows Modules Installer to exit...'
|
|
109
109
|
Wait-Condition {(Get-Process -ErrorAction SilentlyContinue TiWorker | Measure-Object).Count -eq 0}
|
|
110
110
|
Write-Output 'Rebooting...'
|
|
111
|
-
ExitWithCode
|
|
111
|
+
ExitWithCode 0
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-windows-update
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rui Lopes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|