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: 180513c90df8315a4711115fa70c09959f4caf48
4
- data.tar.gz: 33687667fc4c37c49df29a1d41d5de104ffc0c33
3
+ metadata.gz: aa2d7a79ea1b26865c8dea66d381b30945b2e346
4
+ data.tar.gz: 350c39551ae11d5b182b76bc66d4debe12cc3cc2
5
5
  SHA512:
6
- metadata.gz: 7eda0eb511245d03c0ca1271c6be045e0fcc47cd84043cabd20d7cdfb16c2d8c87c9b5de6f24ee44dbcbb1c5aa5c4294f99a1e147b3a4653895f7baac8930d89
7
- data.tar.gz: ff089f43593cc97d396e2cf6ef0721f20873681ada3c04a4ca2f98977b6638ff6612a9d1d2a15114aaaae0f5464a75fbd89dd63c980787f238e7831e8838824a
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?(port)
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?(port)
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
@@ -1,3 +1,3 @@
1
1
  module OctopusServerSpecExtensions
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Richardson