homebrew-core/Formula/bar.rb

17 lines
439 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
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"
sha1 "00b55ca1d52ca6ed099937692697c2257833c73c"
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