vagrant-peach 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3842a9b1995507f8dfb39a12b8adfe02f1a5cecd
4
- data.tar.gz: 665be8e5117f0e766e697296dd5619d321408bea
3
+ metadata.gz: 26a15ee1d1b668e268c404d23ffb3be4b709f761
4
+ data.tar.gz: 52090636d6db81597476e4be15762b382f1bc3d6
5
5
  SHA512:
6
- metadata.gz: 9bb57fcbd9209536913d5538336efd35aa4a0a451e56fa9b216db5f90ebee74a1fa28754143bd37292e75786da0c2c33fe0a2130a10393bc56ac2c037ce2072a
7
- data.tar.gz: 14dd2d9ababf02d92bec72b9fad179cd8a5b6f595b8445f950e63937a3fa06ecc6d3ec11f8535962da75fa469d2470cc37b488970d95914e3970c521e06a8fad
6
+ metadata.gz: a6ac51aeed0f23def48eecc3c25a47f53e69aaa889d8b8e69f908014a082823924de3d3ee61696ef2d05401038fe98e920b85d244ee9fba4defdb156b1f213cc
7
+ data.tar.gz: 79ada70d07be3dbc503d1aa57c106624e989d044562afb531ae40c258b88f0c5d92a3309a4481674ad0d9e39941f07b88b244d44b0848b9f8caf8b95a16e6b94
@@ -22,13 +22,15 @@ module VagrantPeach
22
22
  machine.communicate.upload "#{static_files}/wget", "/peach/tools/wget"
23
23
  machine.communicate.upload "#{static_files}/curl", "/peach/tools/curl"
24
24
 
25
- # Set the path
26
- machine.communicate.sudo 'echo "export PATH=/peach/tools:$PATH" > /etc/profile.d/peach.sh'
27
-
28
25
  # Setup the peach server
29
- machine.communicate.execute 'echo {\\"server\\":\\"10.0.2.2:5000\\"} > ~/.peach.json'
26
+ machine.communicate.sudo 'mkdir -p /etc/peach'
27
+ machine.communicate.sudo 'echo {\\"server\\":\\"10.0.2.2:5000\\"} > /etc/peach/conf.json'
28
+
29
+ # Setup the path for all server
30
+ machine.communicate.sudo %Q(sed -e 's|/peach/tools:||g' -i /etc/environment && sed -e 's|PATH="\\(.*\\)"|PATH="/peach/tools:\\1"|g' -i /etc/environment)
30
31
 
31
32
  @app.call env
33
+
32
34
  end
33
35
  end
34
36
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Peach
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-peach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shuo li