0.0
No commit activity in last 3 years
No release in over 3 years
Shells out to git-credential's various backends for secure credential management
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 0.0.18
 Project Readme

git credential wrapper gem

require "gitcredential"

user_data = { :proto => "https", :host => "heroku.com", :path => "/",
              :user => "bovik" }

gc = Gitcredential.new :backend => :default

cred = gc.get user_data
cred # => nil

result = gc.set(user_data.merge(:password => "s3kr1+"))
result # => true

cred = gc.get user_data
cred # => "s3kr1+"

gc.set(user_data.merge(:password => "aW3s0m3"))

cred = gc.get user_data
cred # => "aW3s0m3"

result = gc.unset user_data
result # => true

cred = gc.get user_data
cred # => nil

result = gc.unset user_data
result # => false