def cleanup_state
      # intentionally not deleting entire temp dir to preserve localized
      # executable directories between tests on Windows. see how we reference
      # RS_RIGHT_RUN_EXE below.
      delete_if_exists(state_file_path)
      delete_if_exists(chef_file_path)
      delete_if_exists(past_scripts_path)
      delete_if_exists(log_path)
      delete_if_exists(cook_state_file_path)
    end
def cleanup_state
      # intentionally not deleting entire temp dir to preserve localized
      # executable directories between tests on Windows. see how we reference
      # RS_RIGHT_RUN_EXE below.
      delete_if_exists(state_file_path)
      delete_if_exists(chef_file_path)
      delete_if_exists(past_scripts_path)
      delete_if_exists(log_path)
      delete_if_exists(cook_state_file_path)
    end
Cleanup files generated by instance state