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.6/grails-3.3.6.zip" sha256 "c7c7835495b15df7e3c299323d5e3b8745bb0b72cc2b928e805f5c7ac85f7960" 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