You are here

function hackedProject::hash_remote_project in Hacked! 6.2

Same name and namespace in other branches
  1. 7.2 includes/hackedProject.inc \hackedProject::hash_remote_project()

Hashes the remote project downloaded earlier.

3 calls to hackedProject::hash_remote_project()
hackedProject::compute_differences in includes/hacked_project.inc
Compute the differences between our version and the cannoical version of the project.
hackedProject::file_is_diffable in includes/hacked_project.inc
hackedProject::locate_local_project in includes/hacked_project.inc
Locate the base directory of the local project.

File

includes/hacked_project.inc, line 115

Class

hackedProject
Ensapsulates a Hacked! project.

Code

function hash_remote_project() {

  // Only do this once, no matter how many times we're called.
  if (!empty($this->remote_hashed)) {
    return;
  }

  // Ensure that the remote project has actually been downloaded.
  $this
    ->download_remote_project();

  // Set up the remote file group.
  $base_path = $this->remote_files_downloader
    ->get_final_destination();
  $this->remote_files = hackedFileGroup::fromDirectory($base_path);
  $this->remote_files
    ->compute_hashes();
  $this->remote_hashed = TRUE;
}