2011-03-10 05:11:03 +00:00
|
|
|
class Bar < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Provide progress bars for shell scripts"
|
2015-01-14 00:30:31 +00:00
|
|
|
homepage "http://www.theiling.de/projects/bar.html"
|
|
|
|
url "http://www.theiling.de/downloads/bar-1.4-src.tar.bz2"
|
|
|
|
sha1 "00b55ca1d52ca6ed099937692697c2257833c73c"
|
2010-04-14 09:38:27 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-14 00:30:31 +00:00
|
|
|
bin.install "bar"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test1").write "pumpkin"
|
|
|
|
(testpath/"test2").write "latte"
|
|
|
|
assert_match /latte/, shell_output("#{bin}/bar test1 test2")
|
2010-04-14 09:38:27 +00:00
|
|
|
end
|
|
|
|
end
|