chef-zero-scheduled-task 0.0.8 → 0.0.9

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: 4b21ff76c72d3eb3267ef752214c3ddc7918ed08
4
- data.tar.gz: 3bd368068712c2290dd2be995f034f4793e99e86
3
+ metadata.gz: 1304f04f47f58cc24bbc7eb1d0c3e08a128cb08c
4
+ data.tar.gz: c746e25b7e7200683c56c7035986a73a01e8e537
5
5
  SHA512:
6
- metadata.gz: 4c740e79c89a84a4cb421cd7f7796590d98661c8af761daa2e2946b8846a1ac9809c7138b9c2fb44f67bec42423f3a0fccf03931c4d52434d6e98b3dc8167ada
7
- data.tar.gz: cb3b0aa4c1931520e433248f27d69d27fdcae80ce0cc5672e060084941394fec598ce749e4149941a779889b8ee32366e47639eeb358d6780a0357a9f8cbd696
6
+ metadata.gz: 1b746c646c9b03cc8e9e2167f447160a7d522afa96d2a2b3f6ed9d6a2d7e9a85de68a0d81c47c4eaaea06657141c025b48a02f3b7a0b4fa460bd7d9fff5ef822
7
+ data.tar.gz: 531f88ed10bf5de39101ef06202ba3e06e4c2174a9d4762646c90ac13d7ec39051237002e1b6b75f229321b94f6e60f0cae86c0d133693ea63822ec1dda6d93c
@@ -2,7 +2,7 @@ module Chef
2
2
  module Zero
3
3
  module Scheduled
4
4
  module Task
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
6
6
  end
7
7
  end
8
8
  end
@@ -30,13 +30,6 @@ module Kitchen
30
30
 
31
31
  default_config :task_password
32
32
 
33
- def create_sandbox
34
- super
35
- return unless windows_os?
36
- info("Creating a script to run chef client.")
37
- prepare_client_zero_script
38
- end
39
-
40
33
  def prepare_command
41
34
  if windows_os?
42
35
  debug("Serializing $env:temp")
@@ -45,15 +38,17 @@ module Kitchen
45
38
  out-file $env:temp/kitchen/env.ps1
46
39
  EOH
47
40
  )
48
- else
49
- super
50
41
  end
42
+ super
51
43
  end
52
44
 
53
45
  def init_command
54
46
  if windows_os?
47
+ info("Creating a script to run chef client.")
48
+ prepare_client_zero_script
55
49
  info("Creating the scheduled task.")
56
- wrap_shell_code(setup_scheduled_task_command)
50
+ init_command_script = "#{super}\n#{setup_scheduled_task_command}"
51
+ wrap_shell_code(init_command_script)
57
52
  else
58
53
  super
59
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero-scheduled-task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements: []
261
261
  rubyforge_project:
262
- rubygems_version: 2.4.8
262
+ rubygems_version: 2.5.2
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: Test-Kitchen Provisioner that runs Chef Zero in a Scheduled Task