kitchen-dsc 0.6.1 → 0.7.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
  SHA1:
3
- metadata.gz: d00806a5aaf9b7738d7d7757d2d8311ca56ac65d
4
- data.tar.gz: 855bbdbabc23a2bf5c55c6a457317ba8756dc88b
3
+ metadata.gz: 199fcd3f8420441f3a0333169a07c2c20b5e9706
4
+ data.tar.gz: 02003c4a0ef9fdf5cfe9b671c607b046680efac6
5
5
  SHA512:
6
- metadata.gz: 7b85331fdcf01980442568ab5167ae6a9614dadb8e8fad9b6dfe79cfca683748ddf357e42afe87a89fa3b52432506c1c02effd704a983e2b52a4c4c29a4c98a6
7
- data.tar.gz: 8c846c791e8002b2760378af17b6c7595a5bf715c70dabc40bd35ab0500666f9bfdd7daabd48cedb56a5430bdf10cbf792b4f7155c97d3e5da333e695259455f
6
+ metadata.gz: 25eabedf3875e2d2d7f8e47a399bfdfe9ad1dc6b64f62a2ae815d3c33e04d622611deef50e0472550a498500e689362032649b98643944149ba898a3e5f515dd
7
+ data.tar.gz: e88664f829e881937b0172d0dcaba5cb4f3d075df4da140325214dbfa073e89a7bc2548aecf3a1f656bb5652609ebf14f660d279ba8d4dd3255612d479fbfe7d
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Dsc
5
- VERSION = '0.6.1'
5
+ VERSION = '0.7.0'
6
6
  end
7
7
  end
@@ -112,6 +112,7 @@ module Kitchen
112
112
  # rubocop:enable Metrics/LineLength
113
113
 
114
114
  def init_command
115
+ wrap_shell_code("mkdir (split-path (join-path #{config[:root_path]} #{sandboxed_configuration_script})) -force | out-null")
115
116
  end
116
117
 
117
118
  def create_sandbox
@@ -129,7 +130,6 @@ module Kitchen
129
130
  # Disable line length check, it is all logging and embedded script.
130
131
  # rubocop:disable Metrics/LineLength
131
132
  def prepare_command
132
- configuration_data_variable = config[:configuration_data_variable].nil? ? 'ConfigurationData' : config[:configuration_data_variable]
133
133
  info('Moving DSC Resources onto PSModulePath')
134
134
  info("Generating the MOF script for the configuration #{config[:configuration_name]}")
135
135
  stage_resources_and_generate_mof_script = <<-EOH
@@ -162,6 +162,10 @@ module Kitchen
162
162
  end
163
163
  # rubocop:enable Metrics/LineLength
164
164
 
165
+ def configuration_data_variable
166
+ config[:configuration_data_variable].nil? ? 'ConfigurationData' : config[:configuration_data_variable]
167
+ end
168
+
165
169
  def configuration_data_assignment
166
170
  '$' + configuration_data_variable + ' = ' + ps_hash(config[:configuration_data])
167
171
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-dsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-28 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project: "[none]"
150
- rubygems_version: 2.4.8
150
+ rubygems_version: 2.5.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: PowerShell DSC provisioner for test-kitchen