github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/installers/homebrew/cf-src.rb (about) 1 require 'formula' 2 3 class CfSrc < Formula 4 homepage 'https://github.com/cloudfoundry/cli' 5 url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.1' 6 7 head 'https://github.com/cloudfoundry/cli.git', :branch => 'master' 8 9 depends_on 'go' => :build 10 11 def install 12 inreplace 'cf/app_constants.go', 'SHA', 'homebrew' 13 inreplace 'cf/app_constants.go', 'BUILT_FROM_SOURCE', 'homebrew' 14 system 'bin/build' 15 bin.install 'out/cf' 16 doc.install 'LICENSE' 17 end 18 19 test do 20 system "#{bin}/cf" 21 end 22 end