36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
class KubernetesHelm < Formula
|
|
desc "The package manager for Kubernetes"
|
|
homepage "https://helm.sh"
|
|
url "https://github.com/helm/helm/archive/0.6.0.tar.gz"
|
|
sha256 "6582f095af305504132c45fba28548b0bb49da51d2f7ac20a89a324606719ed1"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "019bee3d098b65620b461d9bf8a8074bb2b2ffcbb04698ac9bdd0165912e5073" => :el_capitan
|
|
sha256 "671a749f86efe40b797f5ddfc3b11578863b5a8324c376b361f80067e64ec377" => :yosemite
|
|
sha256 "3b02b0730a33ae03d33d3cc8ebb3fe59901fccb146759b2b7648b256de94dd94" => :mavericks
|
|
end
|
|
|
|
depends_on :hg
|
|
depends_on "go" => :build
|
|
depends_on "glide" => :build
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
ENV.prepend_create_path "PATH", buildpath/"bin"
|
|
|
|
mkdir_p buildpath/"src/github.com/helm/"
|
|
ln_sf buildpath, buildpath/"src/github.com/helm/helm"
|
|
|
|
cd "src/github.com/helm/helm" do
|
|
system "make", "bootstrap"
|
|
system "make", "build", "VERSION=#{version}"
|
|
bin.install "bin/helm"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/helm", "create", "foo"
|
|
assert File.directory?("#{testpath}/.helm/workspace/charts/foo")
|
|
end
|
|
end
|