octopus-serverspec-extensions 0.18.0 → 0.18.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
  SHA256:
3
- metadata.gz: c9ffaa67b8ec1ef39a35ddcb48371c502f6166e984c609a150413554617b2688
4
- data.tar.gz: 941cf2db9d4cf04047362bc02e7fea479265c9ad119719a373b4c7d717a7721a
3
+ metadata.gz: accd636bf0a088a23dda4d428fd575840704f3a1068eab896f8817d6890ca9d7
4
+ data.tar.gz: 57e70a349babc455e82194922c2b2b89e0e6cae3cfacfb09b89eb5ac961505f5
5
5
  SHA512:
6
- metadata.gz: 45111168c31eb779c6f473b524e2c6fe98dfa21c631a327bb29d4feb5106d861475136201aec20aa07f4d0af9a0d689f5f0cc300e72043b1f0da25e2b206c818
7
- data.tar.gz: 025b5cc4a4d645335ebbce61add6d0b5986e7aec3bbebc4c75d0c1bb40ae43e6c6878cb5a698faf5ea47d263728eb5a1bb410dfd98719c85e4707d56b3044a65
6
+ metadata.gz: c620edea5319dd1dcba22c44b3d8c1e2befa0705be7cc994dc0f7400f064724172bd82e1478a0bd02785b6ecbcc2f54c9323669057bdcd2f8e439275d1e66d73
7
+ data.tar.gz: '0775348a6ed1c63525ecd2b7b6a64e9642dcbe3b9dac2ef8ce7069920fa1bf0e8ece5b5533c52420f9c1ca30e783e19f032c3ab4a2ea090f471d2e77b1774a4f'
@@ -13,12 +13,12 @@ module Serverspec::Type
13
13
  command_result.stdout.gsub(/\n/, '').match /Get-DSCConfiguration succeeded/
14
14
  end
15
15
 
16
- def return_true_for_test_dsc_configuration?
16
+ def has_test_dsc_configuration_return_true?
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?
21
+ def has_dsc_configuration_status_of_success?
22
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
23
  command_result.stdout.gsub(/\n/, '').match /Get-DSCConfigurationStatus is 'Success'/
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module OctopusServerSpecExtensions
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopus-serverspec-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Richardson