homebrew-core/Formula/flyway.rb
2018-10-25 21:00:20 -04: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.2.1/flyway-commandline-5.2.1.tar.gz"
sha256 "3ac463a17583c3479de2eee377c2a48e739b527c87b4168426125fc4b019a552"
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