homebrew-core/Formula/skaffold.rb
2019-04-16 08:36:16 +02:00

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 => "v0.27.0",
:revision => "6e9c61df6336540325b927071d62947b261a77bf"
head "https://github.com/GoogleContainerTools/skaffold.git"
bottle do
cellar :any_skip_relocation
sha256 "ed0a5b9097d9a6bf401da004d2238b6473e2d06c76231e0e6a9ac16a6270a3fe" => :mojave
sha256 "3b265deca8ad00acba0742f977769b7dcf104ac7c2e39308195a6ce186dde380" => :high_sierra
sha256 "fe43967ce71ec4e8206fe4fe6e354252bfabadcee9d873128d0c7df1b0a875bc" => :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