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 => "v0.25.0",
|
|
:revision => "0f4b8fe88969e9fa38346934ea6af7c46772d603"
|
|
head "https://github.com/GoogleContainerTools/skaffold.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "b7434d61cb433a9502dccff01d4ced8b85c8f4dda726b91541879f511f8abd3a" => :mojave
|
|
sha256 "18afcd6adf702a3340a543afe306006c5a06997b6873dd583b492b4c5fc68665" => :high_sierra
|
|
sha256 "07ff3b34230c54985de427c4d3ae9bac86c7b397a19a472ce84bf0f4ca565c69" => :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
|