chef-zero-scheduled-task 0.0.9 → 0.0.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3483f32db095dc30108f0c7d332329300243841
|
4
|
+
data.tar.gz: 87a6c6564a8d51c13c88ca9d08fdfb7159b203a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d15db7fb0e10dec5f23c70cac9cd9369d4b8d0bff1883cf38b5fdf62fc22dd161893127bf2de6018447a4bbd482a85508ecdc148f980d8da3e2cc5f6ec73d66
|
7
|
+
data.tar.gz: 88d856b13222ac3374a836bf3c8e56cd58d7136029621d3d4042847da74efa5887e66958130149a2c24c8d12816b9f56e2327bfa37b35281c23b9e98cec3dee8
|
@@ -44,11 +44,8 @@ module Kitchen
|
|
44
44
|
|
45
45
|
def init_command
|
46
46
|
if windows_os?
|
47
|
-
info("Creating a script to run chef client.")
|
48
|
-
prepare_client_zero_script
|
49
47
|
info("Creating the scheduled task.")
|
50
|
-
|
51
|
-
wrap_shell_code(init_command_script)
|
48
|
+
wrap_shell_code("#{super}\n#{setup_scheduled_task_command}")
|
52
49
|
else
|
53
50
|
super
|
54
51
|
end
|
@@ -56,7 +53,10 @@ module Kitchen
|
|
56
53
|
|
57
54
|
def run_command
|
58
55
|
if windows_os?
|
59
|
-
|
56
|
+
script = "$script = @'\n#{scheduled_task_command_script}\n'@\n" \
|
57
|
+
"\n$Script | out-file \"$env:temp/kitchen/chef-client-script.ps1\"" \
|
58
|
+
"\n#{run_scheduled_task_command}"
|
59
|
+
wrap_shell_code(script)
|
60
60
|
else
|
61
61
|
super
|
62
62
|
end
|