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: 1304f04f47f58cc24bbc7eb1d0c3e08a128cb08c
4
- data.tar.gz: c746e25b7e7200683c56c7035986a73a01e8e537
3
+ metadata.gz: a3483f32db095dc30108f0c7d332329300243841
4
+ data.tar.gz: 87a6c6564a8d51c13c88ca9d08fdfb7159b203a7
5
5
  SHA512:
6
- metadata.gz: 1b746c646c9b03cc8e9e2167f447160a7d522afa96d2a2b3f6ed9d6a2d7e9a85de68a0d81c47c4eaaea06657141c025b48a02f3b7a0b4fa460bd7d9fff5ef822
7
- data.tar.gz: 531f88ed10bf5de39101ef06202ba3e06e4c2174a9d4762646c90ac13d7ec39051237002e1b6b75f229321b94f6e60f0cae86c0d133693ea63822ec1dda6d93c
6
+ metadata.gz: 5d15db7fb0e10dec5f23c70cac9cd9369d4b8d0bff1883cf38b5fdf62fc22dd161893127bf2de6018447a4bbd482a85508ecdc148f980d8da3e2cc5f6ec73d66
7
+ data.tar.gz: 88d856b13222ac3374a836bf3c8e56cd58d7136029621d3d4042847da74efa5887e66958130149a2c24c8d12816b9f56e2327bfa37b35281c23b9e98cec3dee8
@@ -2,7 +2,7 @@ module Chef
2
2
  module Zero
3
3
  module Scheduled
4
4
  module Task
5
- VERSION = "0.0.9"
5
+ VERSION = "0.0.10"
6
6
  end
7
7
  end
8
8
  end
@@ -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
- init_command_script = "#{super}\n#{setup_scheduled_task_command}"
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
- wrap_shell_code(run_scheduled_task_command)
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
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski