homebrew-core/Formula/fleet-db.rb
2015-06-05 14:47:57 +01:00

22 lines
607 B
Ruby

require 'formula'
class FleetDb < Formula
desc "Schema-free database optimized for agile development"
homepage 'http://fleetdb.org'
url 'http://fleetdb.s3.amazonaws.com/fleetdb-standalone-0.2.0.jar'
sha1 'dcc8f10ba697e7603c4c6ae9ba93913f83de87dd'
def install
libexec.install "fleetdb-standalone-#{version}.jar"
(bin+'fleetdb-server').write <<-EOS.undent
#!/bin/sh
java -cp "#{libexec}/fleetdb-standalone-#{version}.jar" fleetdb.server "$@"
EOS
end
def caveats; <<-EOS.undent
To start a FleetDB server:
fleetdb-server -f /path/to/data.fdb
EOS
end
end