homebrew-core/Formula/grails.rb

25 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.1.11/grails-3.1.11.zip"
sha256 "ff0173aa8b42f5e27d2e8701bcc9c19dbac54587eac5918a9306ba6f559efdfd"
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