automatic mapping setup for elasticsearch through setupcheck
[phorkie.git] / src / phorkie / SetupCheck.php
index ba52d42..0bb632f 100644 (file)
@@ -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);