octopus-serverspec-extensions 0.17.3 → 0.18.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ffaa67b8ec1ef39a35ddcb48371c502f6166e984c609a150413554617b2688
|
4
|
+
data.tar.gz: 941cf2db9d4cf04047362bc02e7fea479265c9ad119719a373b4c7d717a7721a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45111168c31eb779c6f473b524e2c6fe98dfa21c631a327bb29d4feb5106d861475136201aec20aa07f4d0af9a0d689f5f0cc300e72043b1f0da25e2b206c818
|
7
|
+
data.tar.gz: 025b5cc4a4d645335ebbce61add6d0b5986e7aec3bbebc4c75d0c1bb40ae43e6c6878cb5a698faf5ea47d263728eb5a1bb410dfd98719c85e4707d56b3044a65
|
@@ -13,11 +13,16 @@ module Serverspec::Type
|
|
13
13
|
command_result.stdout.gsub(/\n/, '').match /Get-DSCConfiguration succeeded/
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def return_true_for_test_dsc_configuration?
|
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
|
20
20
|
|
21
|
+
def has_test_dsc_configuration_return_success?
|
22
|
+
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { $statuses = @(Get-DSCConfigurationStatus -ErrorAction Stop -All); $status = $statuses[0].Status; write-host "Get-DSCConfigurationStatus is \'$status\'"; if ($status -eq "Success") { exit 0 } else { exit 1 } } catch { write-output "Get-DSCConfigurationStatus failed"; write-output $_; exit 2; }')
|
23
|
+
command_result.stdout.gsub(/\n/, '').match /Get-DSCConfigurationStatus is 'Success'/
|
24
|
+
end
|
25
|
+
|
21
26
|
def to_s
|
22
27
|
"Windows DSC"
|
23
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopus-serverspec-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Richardson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|