diff options
| author | David Paniz | 2013-12-16 19:28:48 -0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-01 12:48:57 -0800 |
| commit | a287ede1897f4191774c07d343f3f2b813a3e9de (patch) | |
| tree | 183facdfa219c0e5be31c400460ce4285ed02c1a /Library/Formula | |
| parent | bf5a62843bdb58f61fbdf2f11539786ebfbc97f8 (diff) | |
| download | homebrew-a287ede1897f4191774c07d343f3f2b813a3e9de.tar.bz2 | |
PredictionIO 0.6.7
Closes #25270.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/predictionio.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/predictionio.rb b/Library/Formula/predictionio.rb new file mode 100644 index 000000000..7a69c3e1d --- /dev/null +++ b/Library/Formula/predictionio.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Predictionio < Formula + homepage 'http://prediction.io/' + url 'http://download.prediction.io/PredictionIO-0.6.7.zip' + sha1 '2f196c66e1dd933e591a84935a058025b6412cc9' + + depends_on 'mongodb' + depends_on 'hadoop' + + def install + rm_f Dir["bin/*.bat"] + + libexec.install Dir['*'] + bin.write_exec_script Dir["#{libexec}/bin/*"] + + mv "#{bin}/start-all.sh", "#{bin}/predictionio-start-all.sh" + mv "#{bin}/stop-all.sh", "#{bin}/predictionio-stop-all.sh" + end + + def caveats; <<-EOS.undent + Before use, you must generate the database and create a user. Run: + #{bin}/setup-vendors.sh + #{bin}/setup.sh + #{bin}/users + + After that, PredictionIO is ready. + Start using: + predictionio-start-all.sh + Stop using: + predictionio-stop-all.sh + EOS + end +end |
