58fcc9071b
Closes #4403. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
19 lines
715 B
Ruby
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
|