homebrew-core/Formula/grails.rb
2017-06-26 23:37:20 -07:00

24 lines
649 B
Ruby

class Grails < Formula
desc "Web application framework for the Groovy language"
homepage "https://grails.org"
url "https://github.com/grails/grails-core/releases/download/v3.2.11/grails-3.2.11.zip"
sha256 "5db6c1716712a67592603e9db37d2f319c29d81e84fb2a4d81ef044ab47d6ffd"
bottle :unneeded
def install
rm_f Dir["bin/*.bat", "bin/cygrails", "*.bat"]
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
end
def caveats; <<-EOS.undent
The GRAILS_HOME directory is:
#{opt_libexec}
EOS
end
test do
assert_match "Grails Version: #{version}", shell_output("#{bin}/grails -v")
end
end