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: e3a4cd8ee79e0008cbec419edba9ab0eca46e606
4
- data.tar.gz: 2f7f988aba5c1835148fe0aa4a991b2131ed6d89
3
+ metadata.gz: 93c85c79fb07b95c44580437d30c3b455caf6a46
4
+ data.tar.gz: aa1fea084946933ad28210ac8e70d7c14b799864
5
5
  SHA512:
6
- metadata.gz: e15314dd568e10e277df4fc2d29bcf8787f867414e96f1eaef481b0a9a4f1e2c935fb4d59aa334ce339b02d221c6a2c08009bc2dee592dd2569f389a4e7e3088
7
- data.tar.gz: 90b9cc3af97d42cb5b6f8914c37ec5df39b42442291c4311ba02757337821387106c36c0208fd235b327d685bba2b1fe445f760a296f1acfa980104ad71916fa
6
+ metadata.gz: 48b83ae84bd2b3a56b114a6e2cb238730a38e4cc48b4a175b66501f657b33f4d780151d2a04bf00245f8b6e06f4e04cbb4faac15454f41a5b2e6211eb4c4fb24
7
+ data.tar.gz: 6651285c082f1ff736139efce7be4bcec26d6d10ca03748c63bac72b740a2f3a667e73aefc8915e523e2c3f3a5aada63233abab16d1de1c84d0fda2136c4eded
@@ -2,7 +2,7 @@ module Chef
2
2
  module Zero
3
3
  module Scheduled
4
4
  module Task
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
  end
7
7
  end
8
8
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero-scheduled-task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski