vagrant-phpstorm-tunnel 0.0.6 → 0.0.7

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/data/php +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0b73e5399f2500c7df8a3fb5d1d1f6786eaba19
4
- data.tar.gz: d27ca5b336388c3797793a34b8cd87c18224b1d9
3
+ metadata.gz: a8db9342348ee3bd05eb03bb7bc6c05477a36e08
4
+ data.tar.gz: 4e9d4f90708323ea405fd5420852dea92809ecbd
5
5
  SHA512:
6
- metadata.gz: acdcc22f26bb3e9ec49de2505c698470356aea92dfb4508e5bd4df029e533597b736f51ae51d743be1cb9acd54602489090ba444c396870507157dc2c6b6cb65
7
- data.tar.gz: ad89ac91df40e1cb483b6e8f9108b6a1934e2f469798b96e4e01094ebd25b4f5b9544619925adb7282ceeb46f770dd1d6ecd850e7fd4a6bcd48e6a208d954885
6
+ metadata.gz: c7503ad50da770ef23d2d68342479283aace344f803216ef1c42e4af6f12b33cc72d54b3d480cfeaf2611fc66631583aaaf042684e1df177cf9928487058436c
7
+ data.tar.gz: 6145660f35f783c4eeea731fa2b0d68f22c33edb21b8eff969d7caaab11488f77fc931868080aa14c3cfaaa2d89331e9facffd1d74b1a9bcfe4c9a990c6cb478
data/data/php CHANGED
@@ -32,10 +32,12 @@ foreach ($arguments as $index => &$argument) {
32
32
  if (file_exists($filePath)) {
33
33
  if (strpos($filePath, $projectDirHost) !== false) {
34
34
  // Mapping project paths to remote paths
35
- $arguments[$index] = str_replace($projectDirHost, $vagrantDir, $filePath);
35
+ $arguments[$index] = str_replace($projectDirHost, $projectDirGuest, $filePath);
36
36
  } else {
37
37
  // Mapping any other local system paths to remote paths, upload files
38
- mkdir($homeDirHost . '/scripts/', 0777, true);
38
+ if(!is_dir($homeDirHost . '/scripts/')) {
39
+ mkdir($homeDirHost . '/scripts/', 0777, true);
40
+ }
39
41
  copy($filePath, $homeDirHost . '/scripts/' . basename($filePath));
40
42
  $arguments[$index] = $homeDirGuest . '/scripts/' . basename($filePath);
41
43
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-phpstorm-tunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media