github.com/jasonkeene/cli@v6.14.1-0.20160816203908-ca5715166dfb+incompatible/installers/homebrew/cf-bin.rb (about)

     1  require 'formula'
     2  
     3  class CfBin < Formula
     4    homepage 'https://github.com/cloudfoundry/cli'
     5    url 'https://github.com/cloudfoundry/cli/releases/download/v6.0.1/cf-darwin-amd64.tgz'
     6    sha1 '548a83996ade1fb4c4334e4ebcfd558434c01daf'
     7  
     8    def install
     9      system 'curl -O https://raw.github.com/cloudfoundry/cli/v6.0.1/LICENSE'
    10      bin.install 'cf-darwin-amd64' => 'cf'
    11      doc.install 'LICENSE'
    12    end
    13  
    14    test do
    15      system "#{bin}/cf"
    16    end
    17  end