homebrew-core/Formula/git-credential-manager.rb
ilovezfs 58fcc9071b git-credential-manager 2.0.1
Closes #4403.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-09-01 03:12:09 -07:00

19 lines
715 B
Ruby

class GitCredentialManager < Formula
desc "Stores Git credentials for Visual Studio Team Services"
homepage "https://java.visualstudio.com/Docs/tools/gitcredentialmanager"
url "https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/releases/download/git-credential-manager-2.0.1/git-credential-manager-2.0.1.jar"
sha256 "a4248f83c43da2f8fa01fa56fedd514cf2c0b6628aee84427f68713105d5a231"
bottle :unneeded
depends_on :java => "1.6+"
def install
libexec.install "git-credential-manager-#{version}.jar"
bin.write_jar_script libexec/"git-credential-manager-#{version}.jar", "git-credential-manager"
end
test do
system "#{bin}/git-credential-manager", "version"
end
end