require 'formula'

class CfCli < Formula
  homepage 'https://github.com/cloudfoundry/cli'
  head 'https://cli.run.pivotal.io/edge?arch=macosx64&source=homebrew'
  url 'https://cli.run.pivotal.io/stable?release=macosx64-binary&version=6.14.1&source=homebrew'
  version '6.14.1'
  sha1 '914b60aedc4515f3770c46e4bbbf322227dad417'

  depends_on :arch => :x86_64

  conflicts_with "cloudfoundry-cli", :because => "the Pivotal tap ships an older cli distribution"

  def install
    bin.install 'cf'
  end

  test do
    system "#{bin}/cf"
  end
end

require 'formula'

class CfCli < Formula
  homepage 'https://github.com/cloudfoundry/cli'
  head 'https://cli.run.pivotal.io/edge?arch=macosx64&source=homebrew'
  url 'https://cli.run.pivotal.io/stable?release=macosx64-binary&version=6.14.1&source=homebrew'
  version '6.14.1'
  sha1 '914b60aedc4515f3770c46e4bbbf322227dad417'

  depends_on :arch => :x86_64

  conflicts_with "pivotal/tap/cloudfoundry-cli", :because => "the Pivotal tap ships an older cli distribution"

  def install
    bin.install 'cf'
  end

  test do
    system "#{bin}/cf"
  end
end

Use fully-qualified tap name in conflicts_with
Use fully-qualified tap name in conflicts_with

Signed-off-by: Muhammad Altaf <62c4feecf50ce9eaca6c8296bee7297f5ed184af@gmail.com>
