41 lines
1.3 KiB
Ruby
41 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.41.0",
|
|
:revision => "1267a0d56033c28380edfe678eb89725796d13c1"
|
|
head "https://github.com/GoogleContainerTools/skaffold.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "22468a0b019f49d9ffbc4b614cb63dbc414964803bd87e3d3e4bfe960f4d729c" => :catalina
|
|
sha256 "fb3029270b66e8fe261e8d5865127edd8cbc26eef170ac0a87b5334cc547ff7d" => :mojave
|
|
sha256 "f985fe9b9fbf7642913a7ef99cf0d618e04ebe298a75bae6608b75d7a604a42e" => :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
|