vagrant-gitcredentials 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module VagrantPlugins
|
|
20
20
|
@machine.communicate.execute("cat ~/.ssh/github.sh")
|
21
21
|
# execute script w/ permissions
|
22
22
|
promptCredentials()
|
23
|
-
@machine.communicate.execute("sh ~/.ssh/github.sh
|
23
|
+
@machine.communicate.execute("sh ~/.ssh/github.sh #@gitUsername #@gitPassword")
|
24
24
|
|
25
25
|
@ui.info("created ssh key")
|
26
26
|
end
|
@@ -33,8 +33,8 @@ module VagrantPlugins
|
|
33
33
|
# get (temporarily) git credentials from user
|
34
34
|
def promptCredentials
|
35
35
|
@ui.info("We will now generate an ssh key and add it to your github account.")
|
36
|
-
@gitUsername =
|
37
|
-
@gitPassword =
|
36
|
+
@gitUsername = @ui.ask("What is your github account name? ")
|
37
|
+
@gitPassword = @ui.ask("What is your github account password? (not stored) ")
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|