PredictionIO 0.6.7
Closes Homebrew/homebrew#25270. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
7bbedba864
commit
d50112d046
1 changed files with 34 additions and 0 deletions
34
Formula/predictionio.rb
Normal file
34
Formula/predictionio.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue