chef-zero-scheduled-task 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93c85c79fb07b95c44580437d30c3b455caf6a46
|
4
|
+
data.tar.gz: aa1fea084946933ad28210ac8e70d7c14b799864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b83ae84bd2b3a56b114a6e2cb238730a38e4cc48b4a175b66501f657b33f4d780151d2a04bf00245f8b6e06f4e04cbb4faac15454f41a5b2e6211eb4c4fb24
|
7
|
+
data.tar.gz: 6651285c082f1ff736139efce7be4bcec26d6d10ca03748c63bac72b740a2f3a667e73aefc8915e523e2c3f3a5aada63233abab16d1de1c84d0fda2136c4eded
|
@@ -81,6 +81,7 @@ module Kitchen
|
|
81
81
|
} while ($state.status -like 'Running')
|
82
82
|
$host.ui.WriteLine('')
|
83
83
|
get-content c:/chef/tk.log -readcount 0
|
84
|
+
$host.setshouldexit((gc c:/chef/exit_code.txt -readcount 0).trim())
|
84
85
|
EOH
|
85
86
|
end
|
86
87
|
|
@@ -98,9 +99,10 @@ module Kitchen
|
|
98
99
|
$cmd_path = "#{remote_path_join(config[:root_path], 'chef-client-script.ps1')}"
|
99
100
|
$cmd_to_eval = gc $cmd_path | out-string
|
100
101
|
$cmd = $executioncontext.invokecommand.expandstring($cmd_to_eval)
|
102
|
+
$post_cmd = '$LastExitCode | out-file c:/chef/exit_code.txt'
|
101
103
|
$cmd_folder = split-path $cmd_path
|
102
104
|
if (-not (test-path $cmd_folder)) {$null = mkdir $cmd_folder}
|
103
|
-
$pre_cmd, $cmd | out-file $cmd_path
|
105
|
+
$pre_cmd, $cmd, $post_cmd | out-file $cmd_path
|
104
106
|
EOH
|
105
107
|
end
|
106
108
|
|