homebrew-core/Formula/lazydocker.rb

30 lines
1.3 KiB
Ruby

class Lazydocker < Formula
desc "Lazier way to manage everything docker"
homepage "https://github.com/jesseduffield/lazydocker"
url "https://github.com/jesseduffield/lazydocker.git",
tag: "v0.10",
revision: "ff0a53bfadfb1bfef5a0e3db023d57fed36fe4eb"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "3bdd4a2361a64382d489fadd6c33880ebc974c5eba2a03c761fd13ae9ff8de7d"
sha256 cellar: :any_skip_relocation, big_sur: "68be351eabf1834a34465ee7ee44ef5d006252235d90374e0a35e4f2bceb408d"
sha256 cellar: :any_skip_relocation, catalina: "beb117f1a6967c87d619fb493ba6a4ec03b528ff55e568b8f740245e0679d1aa"
sha256 cellar: :any_skip_relocation, mojave: "0caabdbda1ce740c6a76952d40c8b8dc28acf936860d5f117113a9c3370ba84c"
sha256 cellar: :any_skip_relocation, high_sierra: "129c5552e5b09b98e170878c7713e52310daa8c3ab507200935415e4621ee1ce"
end
depends_on "go" => :build
def install
system "go", "build", "-mod=vendor", "-o", bin/"lazydocker",
"-ldflags", "-X main.version=#{version} -X main.buildSource=homebrew"
end
test do
assert_match version.to_s, shell_output("#{bin}/lazydocker --version")
assert_match "reporting: undetermined", shell_output("#{bin}/lazydocker --config")
end
end