homebrew-core/Formula/flyway.rb
2020-01-17 18:22:39 +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/6.1.4/flyway-commandline-6.1.4.tar.gz"
sha256 "899d506c1004566810a924389e379ecaa92460928bc223dbc1e604ffc4a387d8"
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