2015-11-17 14:25:49 +00:00
|
|
|
class GitCredentialManager < Formula
|
2015-11-23 15:00:51 +00:00
|
|
|
desc "Stores Git credentials for Visual Studio Team Services"
|
|
|
|
homepage "https://java.visualstudio.com/Docs/tools/gitcredentialmanager"
|
2016-02-02 15:40:33 +00:00
|
|
|
url "https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/releases/download/git-credential-manager-1.4.0/git-credential-manager-1.4.0.jar"
|
|
|
|
sha256 "9a2c405b1876753734774fc63dc01ce8751d4af1a892bea59f823d996624efec"
|
2015-11-17 14:25:49 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
depends_on :java => "1.7+"
|
|
|
|
|
|
|
|
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
|
2015-11-18 18:29:13 +00:00
|
|
|
system "#{bin}/git-credential-manager", "version"
|
2015-11-17 14:25:49 +00:00
|
|
|
end
|
|
|
|
end
|