require 'formula' class Ghi < Formula homepage 'https://github.com/stephencelis/ghi' url 'https://github.com/stephencelis/ghi/archive/0.9.1.tar.gz' sha1 '5aa347d092d80ad6097b811abc486f9da8dfee46' def install bin.install "ghi" man1.install "man/ghi.1" end test do system "#{bin}/ghi", "--version" end end