Module: VagrantPlugins::GitCredentials::Util
- Included in:
- Action::AddKey, Action::RemoveKey
- Defined in:
- lib/vagrant-gitcredentials/Util.rb
Instance Method Summary collapse
-
#createKey ⇒ Object
generates new ssh key and calls github v3 api to add key to user account.
-
#deleteKey ⇒ Object
calls github v3 api to remove key from user account.
-
#promptCredentials ⇒ Object
get (temporarily) git credentials from user.
Instance Method Details
#createKey ⇒ Object
generates new ssh key and calls github v3 api to add key to user account
6 7 8 9 10 |
# File 'lib/vagrant-gitcredentials/Util.rb', line 6 def createKey promptCredentials() # do stuff @ui.say("created ssh key") end |
#deleteKey ⇒ Object
calls github v3 api to remove key from user account
13 14 15 |
# File 'lib/vagrant-gitcredentials/Util.rb', line 13 def deleteKey @ui.say("not yet implemented") end |
#promptCredentials ⇒ Object
get (temporarily) git credentials from user
18 19 20 21 22 |
# File 'lib/vagrant-gitcredentials/Util.rb', line 18 def promptCredentials @ui.say("We will now generate an ssh key and add it to your github account.") @gitUsername = @ui.ask("What is your github account name? ") @gitPassword = @ui.ask("What is your github account password? (not stored) ") end |