homebrew-core/Formula/bar.rb

22 lines
614 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"
license "Zlib"
bottle do
sha256 cellar: :any_skip_relocation, all: "9f0dd0a974b69b3420bc0fd4620506ff0308f1b94409e571daee22087b0ebb8a"
end
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