def build_tmp_dir
      base_directory = tmp_path/"etc"/"chef"
      roles_dir = "#{base_directory}/roles"
      FileUtils.rm_rf base_directory # cleanup old chef temp directory
      puts "Copying the chef-repo into the base directory from #{repo}"
      
      FileUtils.mkdir_p base_directory
      FileUtils.mkdir_p roles_dir # Why do we need this??!?
      if File.directory?(repo)
        if File.exist?(base_directory)
          # First remove the directory
          FileUtils.remove_entry base_directory, :force => true
        end
        cookbook_path = "#{base_directory}/cookbooks"
        FileUtils.mkdir_p cookbook_path
        FileUtils.cp_r "#{repo}/.", cookbook_path
      else
        raise "#{repo} chef repo directory does not exist"
      end
      puts "Creating the dna.json"
      attributes.to_dna [], base_directory/"dna.json", {:run_list => ["role[#{cloud.name}]"]}
      write_solo_dot_rb
      # Make sure the roles directory exists
      FileUtils.mkdir_p roles_dir
      write_chef_role_json "#{roles_dir}/#{cloud.name}.json"
    end
def build_tmp_dir
      base_directory = tmp_path/"etc"/"chef"
      roles_dir = "#{base_directory}/roles"
      FileUtils.rm_rf base_directory # cleanup old chef temp directory
      puts "Copying the chef-repo into the base directory from #{repo}"
      
      FileUtils.mkdir_p base_directory
      FileUtils.mkdir_p roles_dir # Why do we need this??!?
      if File.directory?(repo)
        if File.exist?(base_directory)
          # First remove the directory
          FileUtils.remove_entry base_directory, :force => true
        end
        cookbook_path = "#{base_directory}/cookbooks"
        FileUtils.mkdir_p cookbook_path
        FileUtils.cp_r "#{repo}/.", cookbook_path
      else
        raise "#{repo} chef repo directory does not exist"
      end
      puts "Creating the dna.json"
      attributes.to_dna [], base_directory/"dna.json", {:run_list => ["role[#{cloud.name}]"]}
      write_solo_dot_rb
      # Make sure the roles directory exists
      FileUtils.mkdir_p roles_dir
      write_chef_role_json "#{roles_dir}/#{cloud.name}.json"
    end
The NEW actual chef resolver.