def build_tmp_dir
      base_directory = tmp_path/"etc"/"chef"
      FileUtils.rm_rf base_directory
      FileUtils.mkdir_p base_directory   
      FileUtils.cp validation_key, base_directory if validation_key
      puts "Creating the dna.json"
      attributes.to_dna [], base_directory/"dna.json", {:run_list => roles.map{|r| "role[#{r}]"} + _recipes.map{|r| "recipe[#{r}]"}}.merge(attributes.init_opts)
      unless init_style then    # original style init
        write_client_dot_rb
      else
        bootstrap_tmp_dir = tmp_path/"tmp/chef"
        FileUtils.rm_rf bootstrap_tmp_dir
        FileUtils.mkdir_p bootstrap_tmp_dir
        write_bootstrap_files bootstrap_tmp_dir/"solo.rb", bootstrap_tmp_dir/"chef.json"
      end
    end
def build_tmp_dir
      base_directory = tmp_path/"etc"/"chef"
      FileUtils.rm_rf base_directory
      FileUtils.mkdir_p base_directory   
      FileUtils.cp validation_key, base_directory if validation_key
      puts "Creating the dna.json"
      attributes.to_dna [], base_directory/"dna.json", {:run_list => roles.map{|r| "role[#{r}]"} + _recipes.map{|r| "recipe[#{r}]"}}.merge(attributes.init_opts)
      unless init_style then    # original style init
        write_client_dot_rb
      else
        bootstrap_tmp_dir = tmp_path/"tmp/chef"
        FileUtils.rm_rf bootstrap_tmp_dir
        FileUtils.mkdir_p bootstrap_tmp_dir
        write_bootstrap_files bootstrap_tmp_dir/"solo.rb", bootstrap_tmp_dir/"chef.json"
      end
    end
The NEW actual chef resolver.