git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatic mapping setup for elasticsearch through setupcheck
[phorkie.git]
/
src
/
phorkie
/
SetupCheck.php
diff --git
a/src/phorkie/SetupCheck.php
b/src/phorkie/SetupCheck.php
index ba52d4261313b4fe3b4b972773d6bd306b862318..0bb632fce6ddc8b702443b02e93ef667251080e3 100644
(file)
--- a/
src/phorkie/SetupCheck.php
+++ b/
src/phorkie/SetupCheck.php
@@
-28,6
+28,7
@@
class SetupCheck
$sc->checkDeps();
$sc->checkDirs();
$sc->checkGit();
$sc->checkDeps();
$sc->checkDirs();
$sc->checkGit();
+ $sc->checkDatabase();
}
public function checkDeps()
}
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);
public function fail($msg)
{
throw new Exception($msg);