From f4122874154eebd44bcad84fd938aeb21dd1a7fb Mon Sep 17 00:00:00 2001 From: Karen Wang and Tim Jarratt Date: Thu, 20 Feb 2014 17:28:26 -0800 Subject: cloudfoundry-cli 6.0.0 Closes #26876. Signed-off-by: Adam Vandenberg --- Library/Formula/cloudfoundry-cli.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Library/Formula/cloudfoundry-cli.rb (limited to 'Library') diff --git a/Library/Formula/cloudfoundry-cli.rb b/Library/Formula/cloudfoundry-cli.rb new file mode 100644 index 000000000..ffedcfafd --- /dev/null +++ b/Library/Formula/cloudfoundry-cli.rb @@ -0,0 +1,20 @@ +require 'formula' + +class CloudfoundryCli < Formula + homepage 'https://github.com/cloudfoundry/cli' + head 'https://github.com/cloudfoundry/cli.git', :branch => 'master' + url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.0' + + depends_on 'go' => :build + + def install + inreplace 'src/cf/app_constants.go', 'SHA', 'homebrew' + system 'bin/build' + bin.install 'out/cf' + doc.install 'LICENSE' + end + + test do + system "#{bin}/cf" + end +end -- cgit v1.2.3