homebrew-core/Formula/grails.rb
2017-10-20 14:10:54 +01:00

24 lines
640 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.3.1/grails-3.3.1.zip"
sha256 "a8e2b7f0e09de5b4069bad452ede486fb5487033104f2c5133871fc89fc19f51"
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
The GRAILS_HOME directory is:
#{opt_libexec}
EOS
end
test do
assert_match "Grails Version: #{version}", shell_output("#{bin}/grails -v")
end
end