homebrew-core/Formula/skaffold.rb
2019-09-04 11:52:15 +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.37.1",
:revision => "b58aa4ec019c7af0599e0c85ade91f438c341008"
head "https://github.com/GoogleContainerTools/skaffold.git"
bottle do
cellar :any_skip_relocation
sha256 "2f4c812d5bf0b7f3b1eb2182e9d83fd35662a8a760c6335c5c34e7341e8a8875" => :mojave
sha256 "809ff928fb76b8bccc5a757d5afb988c25c1feaaa685cf42824367155458e506" => :high_sierra
sha256 "44e7df7d8d1991f894d99bad92ca4f295325a8383673c954a3e9e6f372eebd55" => :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