aboutsummaryrefslogtreecommitdiff
path: root/krash.rb
diff options
context:
space:
mode:
authorChristian Segundo2023-10-07 07:20:38 +0200
committerChristian Segundo2023-10-07 07:20:38 +0200
commit88d0bb5d04630f98c7bab385566672c55bd3b826 (patch)
tree19b30f115658ae83205af850b15a80b8d61ec845 /krash.rb
parent7e26c9c8121b0da07b96eb652f496e0e565e3b10 (diff)
downloadhomebrew-tap-88d0bb5d04630f98c7bab385566672c55bd3b826.tar.gz
Add krash
Diffstat (limited to 'krash.rb')
-rw-r--r--krash.rb25
1 files changed, 25 insertions, 0 deletions
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 "<node-name> [-r|--reboot]", shell_output("#{bin}/krash", 1)
+ assert_match "<node-name> [-r|--reboot]", shell_output("kubectl nodecrash", 1)
+ end
+end