kumo/script/kumo.rb
2020-11-24 20:18:20 -08:00

19 lines
627 B
Ruby

class Kumo < Formula
desc "Word Clouds in Java"
homepage "https://github.com/kennycason/kumo"
url "https://search.maven.org/remotecontent?filepath=com/kennycason/kumo-cli/1.28/kumo-cli-1.28.jar"
sha256 "43e4e2ea9da62a2230deed9151d8484f80bd6ae5fef304eaadf3301378f45fb6"
depends_on :java => "1.8+"
def install
libexec.install "kumo-cli-1.28.jar"
bin.write_jar_script libexec/"kumo-cli-1.28.jar", "kumo"
end
test do
pipe_output("#{bin}/kumo --version", "Test Kumo version command")
pipe_output("#{bin}/kumo -i https://wikipedia.org -o /tmp/wikipedia.png", "Generate simple wordcloud")
end
end