aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cloudfoundry-cli.rb
blob: dd901e9c22785a25fd94a6d17360c2869c7ad5c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.1'

  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