homebrew-core/Formula/bar.rb
2015-10-23 16:30:47 +08:00

18 lines
485 B
Ruby

class Bar < Formula
desc "Provide progress bars for shell scripts"
homepage "http://www.theiling.de/projects/bar.html"
url "http://www.theiling.de/downloads/bar-1.4-src.tar.bz2"
sha256 "8034c405b6aa0d474c75ef9356cde1672b8b81834edc7bd94fc91e8ae097033e"
bottle :unneeded
def install
bin.install "bar"
end
test do
(testpath/"test1").write "pumpkin"
(testpath/"test2").write "latte"
assert_match /latte/, shell_output("#{bin}/bar test1 test2")
end
end