octopus-serverspec-extensions 0.13.5 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d42d16a336cf8f35ca35e95711ef0c72b8faecfc
|
4
|
+
data.tar.gz: 651a99a9f8ec16756434f38b671bf3fb0fe82ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b311b247086a39c923d557ae9835ad7f5e7ef6b6be92656e1ad08015f7d94d884177dcdbb1e889c95c7b1a0daa261cf3ae051b344479749369d2169c8a1720c9
|
7
|
+
data.tar.gz: aa4deec8f47c92e3eb83f65df671538a178f34c563a4face09e898af3567d081519b219a308a7ffa77376ad1794bcdc26567a902140f1e6d16c961dc710b4dde
|
@@ -13,7 +13,7 @@ module Serverspec::Type
|
|
13
13
|
command_result.stdout.gsub(/\n/, '').match /Get-DSCConfiguration succeeded/
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def has_applied_dsc_configuration_successfully?
|
17
17
|
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; $state = ""; do { $state = (Get-DscLocalConfigurationManager).LCMState; write-host "LCM state is $state"; Start-Sleep -Seconds 2; } while ($state -ne "Idle"); try { if (-not (Test-DSCConfiguration -ErrorAction Stop)) { write-output "Test-DSCConfiguration returned false"; exit 1 } write-output "Test-DSCConfiguration succeeded"; exit 0 } catch { write-output "Test-DSCConfiguration failed"; write-output $_; exit 2 }')
|
18
18
|
command_result.stdout.gsub(/\n/, '').match /Test-DSCConfiguration succeeded/
|
19
19
|
end
|