vagrant-gitcredentials 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
|