21 lines
635 B
Ruby
21 lines
635 B
Ruby
class Micronaut < Formula
|
|
desc "Modern JVM-based framework for building modular microservices"
|
|
homepage "https://micronaut.io/"
|
|
url "https://github.com/micronaut-projects/micronaut-core/releases/download/v1.1.4/micronaut-1.1.4.zip"
|
|
sha256 "838bce49768d7e77e39760c96c1e954179af3f33d1d6c34972c10cfa783ea157"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.8+"
|
|
|
|
def install
|
|
rm_f Dir["bin/*.bat"]
|
|
libexec.install %W[bin media cli-#{version}.jar]
|
|
bin.install_symlink libexec/"bin/mn"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/mn", "create-app", "hello-world"
|
|
assert_predicate testpath/"hello-world", :directory?
|
|
end
|
|
end
|