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.0/grails-3.3.0.zip" sha256 "4f773c4ce9d6841cfa2b44b9917595af3ae5fb4dbaaac9699d4af0d401a56952" 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