2015-04-05 18:08:49 +00:00
|
|
|
class Flyway < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Database version control to control migrations"
|
2015-04-05 18:08:49 +00:00
|
|
|
homepage "http://flywaydb.org/"
|
2015-04-07 01:20:30 +00:00
|
|
|
url "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/3.2.1/flyway-commandline-3.2.1.tar.gz"
|
2015-04-05 18:08:49 +00:00
|
|
|
sha256 "da942c3b96d89ca221617a720c1945d16dadf142313380a71a825e62821d0a2b"
|
|
|
|
|
2015-10-22 13:34:58 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-04-05 18:08:49 +00:00
|
|
|
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
|