From 88d0bb5d04630f98c7bab385566672c55bd3b826 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 7 Oct 2023 07:20:38 +0200 Subject: Add krash --- krash.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 krash.rb diff --git a/krash.rb b/krash.rb new file mode 100644 index 0000000..01ad0d9 --- /dev/null +++ b/krash.rb @@ -0,0 +1,25 @@ +class Krash < Formula + desc "Crash nodes on demand" + homepage "https://git.segundo.io/Kubernetes/krash/about/" + url "https://git.segundo.io/Kubernetes/krash/snapshot/krash-1.0.0.tar.gz" + sha256 "ec44cc9f4740b2503759773dbd33356a3a9aeedac67c4775dac7f91846865ae7" + license :cannot_represent + head " https://git.segundo.io/Kubernetes/krash", branch: "master" + + depends_on "kubernetes-cli" + depends_on "autoconf" => :build + depends_on "automake" => :build + + def install + system "aclocal" + system "autoconf" + system "automake", "--add-missing" + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match " [-r|--reboot]", shell_output("#{bin}/krash", 1) + assert_match " [-r|--reboot]", shell_output("kubectl nodecrash", 1) + end +end -- cgit v1.2.3