octopus-serverspec-extensions 0.13.0 → 0.13.1
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: aa2d7a79ea1b26865c8dea66d381b30945b2e346
|
4
|
+
data.tar.gz: 350c39551ae11d5b182b76bc66d4debe12cc3cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00f72e0257b0199d8d5542282e09908ec6b8f2f81c2c47ac10a0eb740472a8aa7cbda7365097fc5d5b3fb5577170a62eafa6184ecfa2fe2ec9488b31b307e4db
|
7
|
+
data.tar.gz: 13aad2498ac6dadaffeda8ee40812476e1eb113f5c018925cdc6dd49e895369b0d2a335ef480dca5dfbd4e399279490ff93fc73acc5aaf6fbed81a2753d7b6df
|
@@ -8,12 +8,12 @@ module Serverspec::Type
|
|
8
8
|
@runner = Specinfra::Runner
|
9
9
|
end
|
10
10
|
|
11
|
-
def able_to_get_dsc_configuration?
|
11
|
+
def able_to_get_dsc_configuration?
|
12
12
|
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { Get-DSCConfiguration -Force -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
|
-
def able_to_test_dsc_configuration?
|
16
|
+
def able_to_test_dsc_configuration?
|
17
17
|
command_result = @runner.run_command('$ProgressPreference = "SilentlyContinue"; try { if (-not (Test-DSCConfiguration -Force -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
|