diff options
Diffstat (limited to 'krash.rb')
-rw-r--r-- | krash.rb | 25 |
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 |