homebrew-core/Formula/bee.rb
ilovezfs 20f5d9c048 bee 1.60
Closes .

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-04 23:22:28 -07:00

25 lines
732 B
Ruby

class Bee < Formula
desc "Tool for managing database changes."
homepage "https://github.com/bluesoft/bee"
url "https://github.com/bluesoft/bee/releases/download/1.60/bee-1.60.zip"
sha256 "1a13d884dece7cb53c8331ba66357b36335fe127caafe81698dd450c0b413348"
bottle :unneeded
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