2016-11-24 13:49:44 +00:00
|
|
|
class Kops < Formula
|
|
|
|
desc "Production Grade K8s Installation, Upgrades, and Management"
|
|
|
|
homepage "https://github.com/kubernetes/kops"
|
2017-02-07 09:52:43 +00:00
|
|
|
url "https://github.com/kubernetes/kops/archive/1.5.1.tar.gz"
|
|
|
|
sha256 "ee1c5b61a2ae9f8606981529e83019a9637a26d82b371224b7fd7921254ed1e5"
|
2016-11-24 13:49:44 +00:00
|
|
|
head "https://github.com/kubernetes/kops.git"
|
|
|
|
|
2016-11-24 21:02:11 +00:00
|
|
|
bottle do
|
2016-12-21 12:03:53 +00:00
|
|
|
sha256 "42f01019c571fd0e399022f10e209f9e47baf1357b815ef56393467cbee65e58" => :sierra
|
|
|
|
sha256 "6bd50f64cdd384dddd61fd7c2ddc975ee2d97bffd16744f54b8608fd0d7266e3" => :el_capitan
|
|
|
|
sha256 "1f740e8a4d1ca20e5e567c8880102c243dc95fb9878656fab99a0c2e1d438445" => :yosemite
|
2016-11-24 21:02:11 +00:00
|
|
|
end
|
|
|
|
|
2016-11-24 13:49:44 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "kubernetes-cli"
|
|
|
|
|
|
|
|
def install
|
2016-12-02 17:10:36 +00:00
|
|
|
ENV["VERSION"] = version unless build.head?
|
2016-11-24 13:49:44 +00:00
|
|
|
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
|