homebrew-core/Formula/flyway.rb
2018-03-06 13:59:44 +01:00

20 lines
564 B
Ruby

class Flyway < Formula
desc "Database version control to control migrations"
homepage "https://flywaydb.org/"
url "https://search.maven.org/remotecontent?filepath=org/flywaydb/flyway-commandline/5.0.7/flyway-commandline-5.0.7.tar.gz"
sha256 "5b9bf9fcc6d361b1160c90c59a669126687961ef3effe8eae562cdd2ceffb6fe"
bottle :unneeded
depends_on :java
def install
rm Dir["*.cmd"]
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/flyway"]
end
test do
system "#{bin}/flyway", "-url=jdbc:h2:mem:flywaydb", "validate"
end
end