homebrew-core/Formula/flyway.rb
2019-10-18 18:55:43 +02: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.0.7/flyway-commandline-6.0.7.tar.gz"
sha256 "c734793171fc42c475cd8e06cfba6de2196879a85c2fcff1dd341ef8c07d43b6"
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