homebrew-core/Formula/minikube.rb

44 lines
1.3 KiB
Ruby
Raw Normal View History

class Minikube < Formula
desc "Run a Kubernetes cluster locally"
homepage "https://minikube.sigs.k8s.io/"
url "https://github.com/kubernetes/minikube.git",
:tag => "v1.5.2",
:revision => "792dbf92a1de583fcee76f8791cff12e0c9440ad"
head "https://github.com/kubernetes/minikube.git"
2019-10-26 04:44:14 +00:00
bottle do
cellar :any_skip_relocation
2019-10-30 12:12:40 +00:00
sha256 "2dfc990444ca996045d1e8838cb040e2c92fc8860c680c7425812f0391e3f179" => :catalina
sha256 "150aacbaa94da711d2307c1093d0194172bb152695c55ec793d7fbada66a474f" => :mojave
sha256 "758464faac202b91cdef60c301ea90e4e3fb62df3476d276269dde554df13717" => :high_sierra
2019-10-26 04:44:14 +00:00
end
depends_on "go" => :build
depends_on "go-bindata" => :build
depends_on "kubernetes-cli"
def install
system "make"
bin.install "out/minikube"
output = Utils.popen_read("#{bin}/minikube completion bash")
(bash_completion/"minikube").write output
output = Utils.popen_read("#{bin}/minikube completion zsh")
(zsh_completion/"_minikube").write output
end
test do
output = shell_output("#{bin}/minikube version")
assert_match "version: v#{version}", output
(testpath/".minikube/config/config.json").write <<~EOS
{
"vm-driver": "virtualbox"
}
EOS
output = shell_output("#{bin}/minikube config view")
assert_match "vm-driver: virtualbox", output
end
end