diff options
author | Christian Segundo | 2023-09-12 17:31:31 +0200 |
---|---|---|
committer | Christian Segundo | 2023-09-12 18:34:04 +0200 |
commit | 26487b1400fd8b069f688d73e0d91dde2f4e01f1 (patch) | |
tree | 013641bd312628c9a22891fa9c7aee4c7b55caae /linkerd@2.11.5.rb | |
parent | bcb2fd154d04808c978655d4f9e7a3f1914aeb77 (diff) | |
download | homebrew-tap-26487b1400fd8b069f688d73e0d91dde2f4e01f1.tar.gz |
migrate formulae
Diffstat (limited to 'linkerd@2.11.5.rb')
-rw-r--r-- | linkerd@2.11.5.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/linkerd@2.11.5.rb b/linkerd@2.11.5.rb new file mode 100644 index 0000000..c7ddc6d --- /dev/null +++ b/linkerd@2.11.5.rb @@ -0,0 +1,32 @@ +class LinkerdAT2115 < Formula + desc "Command-line utility to interact with linkerd" + homepage "https://linkerd.io" + url "https://github.com/linkerd/linkerd2.git", + tag: "stable-2.11.5" + license "Apache-2.0" + + keg_only :versioned_formula + + depends_on "go" => :build + + def install + ENV["CI_FORCE_CLEAN"] = "1" + + system "bin/build-cli-bin" + bin.install Dir["target/cli/*/linkerd"] + prefix.install_metafiles + + generate_completions_from_executable(bin/"linkerd", "completion") + end + + test do + run_output = shell_output("#{bin}/linkerd 2>&1") + assert_match "linkerd manages the Linkerd service mesh.", run_output + + version_output = shell_output("#{bin}/linkerd version --client 2>&1") + assert_match "Client version: ", version_output + assert_match stable.specs[:tag], version_output if build.stable? + + system bin/"linkerd", "install", "--ignore-cluster" + end +end |