lib/base/BaseDeploy.class.php
protected function check($action)
	{
		$this->log('check', LOG_DEBUG);

		if (is_array($this->remote_host))
		{
			foreach ($this->remote_host as $key => $remote_host)
			{
				if ($key == 0) continue;

				$this->prepareRemoteDirectory($remote_host, $this->remote_dir);
			}
		}

		if ($action == 'update')
			$this->checkFiles(is_array($this->remote_host) ? $this->remote_host[0] : $this->remote_host, $this->remote_dir, $this->last_remote_target_dir);

		if ($action == 'update')
		{
			if (is_array($this->remote_host))
			{
				foreach ($this->remote_host as $remote_host)
				{
					if ($files = $this->listFilesToRename($remote_host, $this->remote_dir))
					{
						$this->log("Target-specific file renames on $remote_host:");

						foreach ($files as $filepath => $newpath)
							$this->log("  $newpath => $filepath");
					}
				}
			}
			else
			{
				if ($files = $this->listFilesToRename($this->remote_host, $this->remote_dir))
				{
					$this->log('Target-specific file renames:');

					foreach ($files as $filepath => $newpath)
						$this->log("  $newpath => $filepath");
				}
			}
		}

		// als alles goed is gegaan kan er doorgegaan worden met de deployment
		if ($action == 'update')
			return static::inputPrompt('Proceed with deployment? (yes/no): ', 'no') == 'yes';
		elseif ($action == 'rollback')
			return static::inputPrompt('Proceed with rollback? (yes/no): ', 'no') == 'yes';

        return false;
	}
protected function check($action)
	{
		$this->log('check', LOG_DEBUG);

		if (is_array($this->remote_host))
		{
			foreach ($this->remote_host as $key => $remote_host)
			{
				if ($key == 0) continue;

				$this->prepareRemoteDirectory($remote_host, $this->remote_dir);
			}
		}

		if ($action == 'update')
			$this->checkFiles(is_array($this->remote_host) ? $this->remote_host[0] : $this->remote_host, $this->remote_dir, $this->last_remote_target_dir);

		if ($action == 'update')
		{
			if (is_array($this->remote_host))
			{
				foreach ($this->remote_host as $remote_host)
				{
					if ($files = $this->listFilesToRename($remote_host, $this->remote_dir))
					{
						$this->log("Target-specific file renames on $remote_host:");

						foreach ($files as $filepath => $newpath)
							$this->log("  $newpath => $filepath");
					}
				}
			}
			else
			{
				if ($files = $this->listFilesToRename($this->remote_host, $this->remote_dir))
				{
					$this->log('Target-specific file renames:');

					foreach ($files as $filepath => $newpath)
						$this->log("  $newpath => $filepath");
				}
			}
		}

		// als alles goed is gegaan kan er doorgegaan worden met de deployment
		if ($action == 'update')
			return static::inputPrompt('Proceed with deployment? (yes/no): ', 'no') == 'yes';
		elseif ($action == 'rollback')
			return static::inputPrompt('Proceed with rollback? (yes/no): ', 'no') == 'yes';

        return false;
	}
protected function check ( $ action ) { $ this -> log ( 'check' , LOG_DEBUG ) ; if ( is_array ( $ this -> remote_host ) ) { foreach ( $ this -> remote_host as $ key => $ remote_host ) { if ( $ key == 0 ) continue ; $ this -> prepareRemoteDirectory ( $ remote_host , $ this -> remote_dir ) ; } } if ( $ action == 'update' ) $ this -> checkFiles ( is_array ( $ this -> remote_host ) ? $ this -> remote_host [ 0 ] : $ this -> remote_host , $ this -> remote_dir , $ this -> last_remote_target_dir ) ; if ( $ action == 'update' ) { if ( is_array ( $ this -> remote_host ) ) { foreach ( $ this -> remote_host as $ remote_host ) { if ( $ files = $ this -> listFilesToRename ( $ remote_host , $ this -> remote_dir ) ) { $ this -> log ( "Target-specific file renames on $remote_host:" ) ; foreach ( $ files as $ filepath => $ newpath ) $ this -> log ( "  $newpath => $filepath" ) ; } } } else { if ( $ files = $ this -> listFilesToRename ( $ this -> remote_host , $ this -> remote_dir ) ) { $ this -> log ( 'Target-specific file renames:' ) ; foreach ( $ files as $ filepath => $ newpath ) $ this -> log ( "  $newpath => $filepath" ) ; } } } // als alles goed is gegaan kan er doorgegaan worden met de deployment if ( $ action == 'update' ) return static :: inputPrompt ( 'Proceed with deployment? (yes/no): ' , 'no' ) == 'yes' ; elseif ( $ action == 'rollback' ) return static :: inputPrompt ( 'Proceed with rollback? (yes/no): ' , 'no' ) == 'yes' ; return false ; }
Run a dry-run to the remote server to show the changes to be made

@param string $action		 update or rollback
@throws DeployException
@return bool				 if the user wants to proceed with the deployment
Run a dry - run to the remote server to show the changes to be made