kitchen-dsc 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen-dsc/version.rb +1 -1
- data/lib/kitchen/provisioner/dsc.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 199fcd3f8420441f3a0333169a07c2c20b5e9706
|
4
|
+
data.tar.gz: 02003c4a0ef9fdf5cfe9b671c607b046680efac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25eabedf3875e2d2d7f8e47a399bfdfe9ad1dc6b64f62a2ae815d3c33e04d622611deef50e0472550a498500e689362032649b98643944149ba898a3e5f515dd
|
7
|
+
data.tar.gz: e88664f829e881937b0172d0dcaba5cb4f3d075df4da140325214dbfa073e89a7bc2548aecf3a1f656bb5652609ebf14f660d279ba8d4dd3255612d479fbfe7d
|
data/lib/kitchen-dsc/version.rb
CHANGED
@@ -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.
|
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:
|
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.
|
150
|
+
rubygems_version: 2.5.2
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: PowerShell DSC provisioner for test-kitchen
|