40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
class Skaffold < Formula
|
|
desc "Easy and Repeatable Kubernetes Development"
|
|
homepage "https://github.com/GoogleContainerTools/skaffold"
|
|
url "https://github.com/GoogleContainerTools/skaffold.git",
|
|
:tag => "v1.0.1",
|
|
:revision => "934dd5ad304bef89cb3619b5b2ef53eb8cf04715"
|
|
head "https://github.com/GoogleContainerTools/skaffold.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "1031e97a764eacc50f8dfbf10dad488df26c181d896669909191b254cb5af255" => :catalina
|
|
sha256 "916892170e909e7dea00d7bc8f4267d41eeb00a2348bb88d69b05a24a55d6875" => :mojave
|
|
sha256 "6eef6b367f2ec486862b50f929daa41fdb13583e4e990dd3e1c517e643d405e0" => :high_sierra
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
dir = buildpath/"src/github.com/GoogleContainerTools/skaffold"
|
|
dir.install buildpath.children - [buildpath/".brew_home"]
|
|
cd dir do
|
|
system "make"
|
|
bin.install "out/skaffold"
|
|
|
|
output = Utils.popen_read("#{bin}/skaffold completion bash")
|
|
(bash_completion/"skaffold").write output
|
|
|
|
output = Utils.popen_read("#{bin}/skaffold completion zsh")
|
|
(zsh_completion/"_skaffold").write output
|
|
|
|
prefix.install_metafiles
|
|
end
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/skaffold version --output {{.GitTreeState}}")
|
|
assert_match "clean", output
|
|
end
|
|
end
|