-
Notifications
You must be signed in to change notification settings - Fork 3
/
kubeprompt.rb
43 lines (36 loc) · 1.2 KB
/
kubeprompt.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Kubeprompt < Formula
desc "K8S information in your prompt"
homepage "https://github.com/jlesquembre/kubeprompt"
version "0.4.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Darwin_x86_64.tar.gz"
sha256 "869627a40e3af455f669ff667bd54fd19cfc8ec0a736dcd4977da0a788ff076b"
def install
bin.install "kubeprompt"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Linux_x86_64.tar.gz"
sha256 "b359ab77e10040bb539adfdaccecb91e8548283f2ee0303800140044dbc0aa4a"
def install
bin.install "kubeprompt"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Linux_arm64.tar.gz"
sha256 "e491260c50465bc2bf3c98d5275999fb087cefdbab72aaf78781261427acf7ba"
def install
bin.install "kubeprompt"
end
end
end
test do
system "#{bin}/kubeprompt -v"
end
end