Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Updating to use new shells available to windows-guest-branch of test-…
Browse files Browse the repository at this point in the history
…kitchen
  • Loading branch information
tyler-ball committed Jan 29, 2015
1 parent 59b22f4 commit 6fd6d41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/kitchen/provisioner/policyfile_zero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PolicyfileZero < ChefBase
default_config :chef_zero_port, 8889

default_config :chef_client_path do |provisioner|
File.join(provisioner[:chef_omnibus_root], %w[bin chef-client])
File.join(provisioner[:chef_omnibus_root], provisioner.shell.chef_client_file)
end

# Emit a warning that Policyfile stuff is still experimental.
Expand All @@ -69,7 +69,7 @@ def create_sandbox
# (see Base#run_command)
def run_command
level = config[:log_level] == :info ? :auto : config[:log_level]
chef_client_bin = sudo(config[:chef_client_path])
chef_client_bin = shell.sudo(config[:chef_client_path])

cmd = "#{chef_client_bin} --local-mode"
args = [
Expand All @@ -85,7 +85,7 @@ def run_command
args << "--logfile #{config[:log_file]}"
end

Util.wrap_command([cmd, *args].join(" "))
shell.wrap_command([cmd, *args].join(" "))
end

private
Expand Down

0 comments on commit 6fd6d41

Please sign in to comment.