homebrew-core/Formula/bork.rb

23 lines
775 B
Ruby

class Bork < Formula
desc "Bash-Operated Reconciling Kludge"
homepage "https://github.com/skylarmacdonald/bork"
url "https://github.com/skylarmacdonald/bork/archive/v0.12.0.tar.gz"
sha256 "525f797a5ad01734d298852a038c2a2cb338ee9bb038c560bb20ecf142b1588b"
license "Apache-2.0"
head "https://github.com/skylarmacdonald/bork.git"
bottle :unneeded
def install
prefix.install %w[bin docs lib test types]
end
test do
expected_output = "checking: directory #{testpath}/foo\r" \
"missing: directory #{testpath}/foo \n" \
"verifying : directory #{testpath}/foo\n" \
"* success\n"
assert_match expected_output, shell_output("#{bin}/bork do ok directory #{testpath}/foo", 1)
end
end