vagrant-gitcredentials 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,15 +7,13 @@ module VagrantPlugins
|
|
7
7
|
# generates new ssh key and calls github v3 api to add key to user account
|
8
8
|
def createKey
|
9
9
|
promptCredentials()
|
10
|
-
# do stuff
|
11
|
-
with_target_vms(argv, :reverse => true) do |machine|
|
12
10
|
# create script
|
13
|
-
machine.communicate.upload(srcPath, destPath)
|
11
|
+
@machine.communicate.upload(srcPath, destPath)
|
14
12
|
# set permissions for execution
|
15
|
-
machine.communicate.execute("chmod 755 ~/.ssh/github.sh")
|
13
|
+
@machine.communicate.execute("chmod 755 ~/.ssh/github.sh")
|
16
14
|
# execute script w/ permissions
|
17
|
-
machine.communicate.execute("sh ~/.ssh/github.sh #{gitUsername} #{gitPassword}")
|
18
|
-
|
15
|
+
@machine.communicate.execute("sh ~/.ssh/github.sh #{gitUsername} #{gitPassword}")
|
16
|
+
|
19
17
|
@ui.info("created ssh key")
|
20
18
|
end
|
21
19
|
|