2015-09-22 20:59:12 +00:00
|
|
|
class Bee < Formula
|
|
|
|
desc "Tool for managing database changes."
|
|
|
|
homepage "https://github.com/bluesoft/bee"
|
2017-02-23 06:40:42 +00:00
|
|
|
url "https://github.com/bluesoft/bee/releases/download/1.61/bee-1.61.zip"
|
|
|
|
sha256 "656f52ad1e363cc204da4382452ef02fb42b8dc27f3da8378f4492aee4e6a15f"
|
2015-09-22 20:59:12 +00:00
|
|
|
|
2015-10-22 13:09:35 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-09-22 20:59:12 +00:00
|
|
|
def install
|
|
|
|
rm_rf Dir["bin/*.bat"]
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.install_symlink "#{libexec}/bin/bee"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"bee.properties").write <<-EOS.undent
|
|
|
|
test-database.driver=com.mysql.jdbc.Driver
|
|
|
|
test-database.url=jdbc:mysql://127.0.0.1/test-database
|
|
|
|
test-database.user=root
|
|
|
|
test-database.password=
|
|
|
|
EOS
|
|
|
|
(testpath/"bee").mkpath
|
|
|
|
system bin/"bee", "dbchange:create new-file"
|
|
|
|
end
|
|
|
|
end
|