homebrew-core/Formula/kops.rb

31 lines
1,000 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/1.6.1.tar.gz"
sha256 "842363057ced88097373af49f5306a20192c7c92570e68964f2d1c0cb9ea1285"
head "https://github.com/kubernetes/kops.git"
2016-11-24 21:02:11 +00:00
bottle do
2017-02-07 09:57:22 +00:00
cellar :any_skip_relocation
2017-06-12 04:01:08 +00:00
sha256 "18f418a4d06b4179c0146bde8bc7ef79b954813ed209f2445464a392e05f2d09" => :sierra
sha256 "1c9a76dedd7173c6d4540ede03142b7f74e594bd1f625b13ba6d9340d642eca8" => :el_capitan
sha256 "5c66416bd9a4a2a8a931f13cbaacce9bfa9a9626ccfd59da6afb5358f16c2ccb" => :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