diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-05-02 18:18:17 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-05-02 18:18:17 +0200 |
| commit | 3bc2092b7732a33db738e12afde32645e49d5c47 (patch) | |
| tree | 340f0a6eb7a02997749c99ff29121c265edbdfeb /src/phorkie/SetupCheck.php | |
| parent | 6d445737a4b814bedb2787ac4504352df38b48d2 (diff) | |
| download | phorkie-3bc2092b7732a33db738e12afde32645e49d5c47.tar.gz phorkie-3bc2092b7732a33db738e12afde32645e49d5c47.zip | |
automatic mapping setup for elasticsearch through setupcheck
Diffstat (limited to 'src/phorkie/SetupCheck.php')
| -rw-r--r-- | src/phorkie/SetupCheck.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index ba52d42..0bb632f 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -28,6 +28,7 @@ class SetupCheck $sc->checkDeps(); $sc->checkDirs(); $sc->checkGit(); + $sc->checkDatabase(); } public function checkDeps() @@ -67,6 +68,12 @@ class SetupCheck } } + public function checkDatabase() + { + $dbs = new Database_Setup_Elasticsearch(); + $dbs->setup(); + } + public function fail($msg) { throw new Exception($msg); |
