20 lines
564 B
Ruby
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/4.1.2/flyway-commandline-4.1.2.tar.gz"
|
|
sha256 "377b6619033ebd1703ec66d33f6572360b1c26138be40d81c7869e2f9ab22eb0"
|
|
|
|
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
|