class Kitchen::Provisioner::PolicyfileZero

def run_command

(see Base#run_command)
def run_command
  level = config[:log_level] == :info ? :auto : config[:log_level]
  cmd = "#{sudo(config[:chef_client_path])} --local-mode"
    .tap { |str| str.insert(0, "& ") if powershell_shell? }
  args = [
    "--config #{config[:root_path]}/client.rb",
    "--log_level #{level}",
    "--force-formatter",
    "--no-color",
  ]
  if config[:chef_zero_port]
    args << "--chef-zero-port #{config[:chef_zero_port]}"
  end
  if config[:log_file]
    args << "--logfile #{config[:log_file]}"
  end
  if config[:named_run_list]
    args << "--named-run-list #{config[:named_run_list]}"
  end
  wrap_shell_code(
    [cmd, *args].join(" ")
    .tap { |str| str.insert(0, reload_ps1_path) if windows_os? }
  )
end