Platformsh\Cli\Helper\GitHelper::ensureInstalled PHP 메소드

ensureInstalled() 공개 메소드

Ensure that the Git CLI is installed.
public ensureInstalled ( )
    public function ensureInstalled()
    {
        if (!$this->shellHelper->commandExists('git')) {
            throw new DependencyMissingException('Git must be installed');
        }
    }

Usage Example

예제 #1
0
 /**
  * Test GitHelper::ensureInstalled().
  */
 public function testEnsureInstalled()
 {
     try {
         $this->gitHelper->ensureInstalled();
     } catch (\Exception $e) {
         $this->fail();
     }
 }
All Usage Examples Of Platformsh\Cli\Helper\GitHelper::ensureInstalled