2010-07-15 16:30:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class FleetDb < Formula
|
2010-07-15 16:30:23 +00:00
|
|
|
homepage 'http://fleetdb.org'
|
2013-01-27 23:13:12 +00:00
|
|
|
url 'http://fleetdb.s3.amazonaws.com/fleetdb-standalone-0.2.0.jar'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'dcc8f10ba697e7603c4c6ae9ba93913f83de87dd'
|
2010-07-15 16:30:23 +00:00
|
|
|
|
|
|
|
def install
|
2013-08-12 23:47:40 +00:00
|
|
|
libexec.install "fleetdb-standalone-#{version}.jar"
|
2012-02-11 23:20:43 +00:00
|
|
|
(bin+'fleetdb-server').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2013-08-12 23:47:40 +00:00
|
|
|
java -cp "#{libexec}/fleetdb-standalone-#{version}.jar" fleetdb.server "$@"
|
2012-02-11 23:20:43 +00:00
|
|
|
EOS
|
2010-07-15 16:30:23 +00:00
|
|
|
end
|
|
|
|
|
2012-02-11 23:20:43 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To start a FleetDB server:
|
|
|
|
fleetdb-server -f /path/to/data.fdb
|
|
|
|
EOS
|
2010-07-15 16:30:23 +00:00
|
|
|
end
|
|
|
|
end
|