homebrew-core/Formula/flyway.rb

21 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/4.1.1/flyway-commandline-4.1.1.tar.gz"
sha256 "7df1f469e2efb5619a461e287dfc123b7a02389a21cbae944fd5d06bf028c287"
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