30 lines
1.2 KiB
Ruby
30 lines
1.2 KiB
Ruby
class Docui < Formula
|
|
desc "TUI Client for Docker"
|
|
homepage "https://github.com/skanehira/docui"
|
|
url "https://github.com/skanehira/docui/archive/2.0.4.tar.gz"
|
|
sha256 "9af1a720aa7c68bea4469f1d7eea81ccb68e15a47ccfc9c83011a06d696ad30d"
|
|
license "MIT"
|
|
head "https://github.com/skanehira/docui.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "30638ca04ad60f4c2406405d151dad2c5854a6b7404dcb1d5be3917a93efcd14"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "17950b11df021726ebb04675ffc92c096e94ab213c32b803888ab3c16e360f60"
|
|
sha256 cellar: :any_skip_relocation, catalina: "85812a1ae880fa35f8f03fb7632d6e1cae1288c673c02d5ef41763a998e1ce42"
|
|
sha256 cellar: :any_skip_relocation, mojave: "da3b5097f43474a93b7fd5d9cdd27c351b4c86214041369a7e3c41690574fe45"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "7b07a4c7b3432386b5708ec2a9fbc319fd30d1abd12ec03d802a2e2a49bfaf7b"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", *std_go_args, "-ldflags", "-s -w"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/docui", "-h"
|
|
|
|
assert_match "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?",
|
|
shell_output("#{bin}/docui 2>&1", 1)
|
|
end
|
|
end
|