kedge 0.6.0 (new formula)

Closes #19665.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Tomas Kral 2017-10-20 11:14:17 +02:00 committed by ilovezfs
parent ee69b026c1
commit ab9992ed56

26
Formula/kedge.rb Normal file
View file

@ -0,0 +1,26 @@
class Kedge < Formula
desc "Deployment tool for Kubernetes artifacts"
homepage "http://kedgeproject.org/"
url "https://github.com/kedgeproject/kedge/archive/v0.6.0.tar.gz"
sha256 "8df6c9251c8ea447c67cda0eac89a145573d4295b11d76191b3da803189b20d0"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/kedgeproject").mkpath
ln_s buildpath, buildpath/"src/github.com/kedgeproject/kedge"
system "make", "bin"
bin.install "kedge"
end
test do
(testpath/"kedgefile.yml").write <<~EOS
name: test
containers:
- image: test
EOS
output = shell_output("#{bin}/kedge generate -f kedgefile.yml")
assert_match "name: test", output
end
end