kubernetes-cli@1.3: remove
parent
04c4eecef0
commit
f23b74c490
|
@ -1 +0,0 @@
|
|||
../Formula/kubernetes-cli.rb
|
|
@ -1,40 +0,0 @@
|
|||
class KubernetesCliAT13 < Formula
|
||||
desc "Kubernetes command-line interface"
|
||||
homepage "https://kubernetes.io/"
|
||||
url "https://github.com/kubernetes/kubernetes/archive/v1.3.10.tar.gz"
|
||||
sha256 "480e3de5c4419a3309c71f2181c7ada7c910601a956cc3e3a19ee98884097855"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "9209c4fbbadf688a69268b0b698e0375ff913d394b066e1ab9544c5ef92911ac" => :high_sierra
|
||||
sha256 "90f6531017970c3adc25a33412ff5e6189b7e5c4fd7ed755ff254357984afee5" => :sierra
|
||||
sha256 "e12f80dd4ec73d313f474fc4f79a9619209e5d40656a7808c50846c1d169f564" => :el_capitan
|
||||
sha256 "490566a4266fb26ca84175197db2ec55fe3aac0e70e7334fccc9343d3d1556c5" => :yosemite
|
||||
end
|
||||
|
||||
keg_only :versioned_formula
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
if build.stable?
|
||||
system "make", "all", "WHAT=cmd/kubectl", "GOFLAGS=-v"
|
||||
else
|
||||
# avoids needing to vendor github.com/jteeuwen/go-bindata
|
||||
rm "./test/e2e/framework/gobindata_util.go"
|
||||
|
||||
ENV.deparallelize { system "make", "generated_files" }
|
||||
system "make", "kubectl", "GOFLAGS=-v"
|
||||
end
|
||||
arch = MacOS.prefer_64_bit? ? "amd64" : "x86"
|
||||
bin.install "_output/local/bin/darwin/#{arch}/kubectl"
|
||||
|
||||
output = Utils.popen_read("#{bin}/kubectl completion bash")
|
||||
(bash_completion/"kubectl").write output
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{bin}/kubectl 2>&1")
|
||||
assert_match "kubectl controls the Kubernetes cluster manager.", output
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue