octopus-serverspec-extensions 0.13.1 → 0.13.2
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: a4b85ebb89de46927bcf19421067b6d2a74af9ea
|
4
|
+
data.tar.gz: 786336c95248dca1781f032515f6eb46960feff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49b87538be60bfde894fdb74fbc63a5ef64e72786da5332be07256dda8d57387326862878887e4187ac4c4a25b65fef38a07456ab61529ec9e4ec674d606d0da
|
7
|
+
data.tar.gz: 95ba2a495a9726de01b62259888319f151eaae50c03236c22394d3d819778b5f4e54517569e550e34a24cb021eb6a1ab2053e2e3afa23800350361d02ef9c62a
|
@@ -9,12 +9,12 @@ module Serverspec::Type
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def able_to_get_dsc_configuration?
|
12
|
-
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { Get-DSCConfiguration -
|
12
|
+
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { Get-DSCConfiguration -ErrorAction Stop; write-output "Get-DSCConfiguration succeeded"; $true } catch { write-output "Get-DSCConfiguration failed"; write-output $_; $false }')
|
13
13
|
command_result.stdout.gsub(/\n/, '').match /Get-DSCConfiguration succeeded/
|
14
14
|
end
|
15
15
|
|
16
16
|
def able_to_test_dsc_configuration?
|
17
|
-
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { if (-not (Test-DSCConfiguration -
|
17
|
+
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; 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
|
|