isGitDeployment() публичный статический Метод

Returns true if Piwik is deployed using git FAQ: http://piwik.org/faq/how-to-install/faq_18271/
public static isGitDeployment ( ) : boolean
Результат boolean
Пример #1
0
 public function isEnabled()
 {
     return SettingsPiwik::isGitDeployment();
 }
Пример #2
0
 private function getCurrentGitHash()
 {
     // we should not use 'git' executable unless we are in a git clone
     if (!SettingsPiwik::isGitDeployment()) {
         return 'WARN: it does not look like a Piwik repository clone - you must setup Piwik from git to proceed';
     }
     return trim(`git rev-parse HEAD`);
 }
Пример #3
0
 public function isEnabled()
 {
     return Development::isEnabled() && SettingsPiwik::isGitDeployment();
 }
Пример #4
0
 private function getCurrentGitHash()
 {
     // we should not use 'git' executable unless we are in a git clone
     if (!SettingsPiwik::isGitDeployment()) {
         return 'WARN: it does not look like a Piwik repository clone - you must setup Piwik from git to proceed';
     }
     $gitCmd = 'git -C ' . escapeshellarg(PIWIK_INCLUDE_PATH) . ' rev-parse HEAD';
     return trim(shell_exec($gitCmd));
 }