homebrew-core/Formula/kops.rb

32 lines
1,014 B
Ruby
Raw Normal View History

class Kops < Formula
desc "Production Grade K8s Installation, Upgrades, and Management"
homepage "https://github.com/kubernetes/kops"
url "https://github.com/kubernetes/kops/archive/v1.4.1.tar.gz"
sha256 "69b3c9d7e214109cfd197031091ed23963383c894e92804306629f6a32ab324b"
head "https://github.com/kubernetes/kops.git"
revision 1
2016-11-24 21:02:11 +00:00
bottle do
cellar :any_skip_relocation
2016-12-02 22:41:54 +00:00
sha256 "f174b175d52e45b7d195ea231a6e970841e770d1f2a62385673425c596e59e5b" => :sierra
sha256 "aaf16240625675fb28c46d357a0b25f4844e56aa881c987fa7dd03c521087477" => :el_capitan
sha256 "9edb1edd290e6e0a39bcad0177f2adf85d5cd9c030c4621efc01e6dc90517877" => :yosemite
2016-11-24 21:02:11 +00:00
end
depends_on "go" => :build
depends_on "kubernetes-cli"
def install
ENV["VERSION"] = version unless build.head?
ENV["GOPATH"] = buildpath
kopspath = buildpath/"src/k8s.io/kops"
kopspath.install Dir["*"]
system "make", "-C", kopspath
bin.install("bin/kops")
end
test do
system "#{bin}/kops", "version"
end
end