vagrant-gitcredentials 0.0.13 → 0.0.14

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.
@@ -3,15 +3,15 @@ module VagrantPlugins
3
3
  module Util
4
4
  # generates new ssh key and calls github v3 api to add key to user account
5
5
  def createKey
6
- promptCredentials()
7
6
  srcPath= "scripts/github.sh"
8
- destPath = "~/.ssh/github.sh"
7
+ destPath = "/root/.ssh/github.sh"
9
8
  # create script
10
9
  @machine.communicate.upload(srcPath, destPath)
11
10
  # set permissions for execution
12
- @machine.communicate.execute("chmod 755 ~/.ssh/github.sh")
11
+ @machine.communicate.execute("chmod 755 /root/.ssh/github.sh")
13
12
  # execute script w/ permissions
14
- @machine.communicate.execute("sh ~/.ssh/github.sh #{gitUsername} #{gitPassword}")
13
+ promptCredentials()
14
+ @machine.communicate.execute("sh /root/.ssh/github.sh #{gitUsername} #{gitPassword}")
15
15
 
16
16
  @ui.info("created ssh key")
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GitCredentials
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 13
9
- version: 0.0.13
8
+ - 14
9
+ version: 0.0.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Giberson