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.8/grails-3.1.8.zip" sha256 "aeef1cce73e57d3823486774cbb2733fbe7162e4af5cbef7acd7286fcdd648b3" 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 output = shell_output("#{bin}/grails --version") assert_match /Grails Version: #{version}/, output end end