homebrew-core/Formula/tunnel.rb
2019-09-02 19:20:29 +02:00

24 lines
788 B
Ruby

class Tunnel < Formula
desc "Expose local servers to the internet securely"
homepage "https://tunnel.labstack.com/docs"
url "https://github.com/labstack/tunnel-client/archive/v0.4.2.tar.gz"
sha256 "3e29a4dac694e871bdbb852ccdad3d70dd3d09e050ae7e17aef90794eed029cf"
bottle do
cellar :any_skip_relocation
sha256 "a598e1baf67a2e824b0d0db255c5b59279d7d3f6d05adfe135b382f68c2a3eab" => :mojave
sha256 "71758e150eef0eb5d826abaa3985332fbee0fd1b8ddb128ea1913c43df7b17de" => :high_sierra
sha256 "9368538e7827ba06f7dad1aeece19833f721e78883eade09d83dd72bc71f3de1" => :sierra
end
depends_on "go" => :build
def install
system "go", "build", "-o", bin/"tunnel", "./cmd/tunnel"
prefix.install_metafiles
end
test do
system bin/"tunnel", "ping"
end
end