homebrew-core/Formula/kubernetes-helm.rb

30 lines
813 B
Ruby
Raw Normal View History

class KubernetesHelm < Formula
desc "The package manager for Kubernetes"
homepage "https://helm.sh"
url "https://github.com/helm/helm/archive/0.5.0.tar.gz"
sha256 "7dfd2b27a400e690c16bf2fbf261e2afd198d88fe90a18b1ccd0b3d863e93332"
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