bore-cli: 0.2.3 (new formula)
rename formula to bore-cli Closes #99340. Signed-off-by: Moulick Aggarwal <moulickaggarwal@gmail.com> Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
7517660d06
commit
0b160ed7b5
|
@ -0,0 +1,24 @@
|
|||
class BoreCli < Formula
|
||||
desc "Modern, simple TCP tunnel in Rust that exposes local ports to a remote server"
|
||||
homepage "http://bore.pub"
|
||||
url "https://github.com/ekzhang/bore/archive/refs/tags/v0.4.0.tar.gz"
|
||||
sha256 "ab1f3e924ce8a32eafe842de0bb1d23eeeb397ec0ad16455b443206f0c9ee59d"
|
||||
license "MIT"
|
||||
head "https://github.com/ekzhang/bore.git", branch: "main"
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
_, stdout, wait_thr = Open3.popen2("#{bin}/bore server")
|
||||
assert_match "server listening", stdout.gets("\n")
|
||||
|
||||
assert_match version.to_s, shell_output("#{bin}/bore --version")
|
||||
ensure
|
||||
Process.kill("TERM", wait_thr.pid)
|
||||
Process.wait(wait_thr.pid)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue