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"
|
2016-12-21 11:44:50 +00:00
|
|
|
url "https://github.com/kubernetes/kops/archive/v1.4.4.tar.gz"
|
|
|
|
sha256 "32623441347845fca897b6fb1121466dc3ee8e6534c7582001f427ca4ac57938"
|
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
|