vagrant-winnfsd 1.0.3 → 1.0.4
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.
- data/CHANGELOG +8 -0
- data/README.md +10 -0
- data/bin/nfsservice.bat +36 -20
- data/bin/winnfsd.exe +0 -0
- data/lib/vagrant-winnfsd/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -15,3 +15,13 @@ Supported guests:
|
|
15
15
|
```
|
16
16
|
$ vagrant plugin install vagrant-winnfsd
|
17
17
|
```
|
18
|
+
|
19
|
+
## Activate NFS for vagrant
|
20
|
+
|
21
|
+
To activate NFS for vagrant see: http://docs.vagrantup.com/v2/synced-folders/nfs.html
|
22
|
+
|
23
|
+
The plugin extends vagrant in the way that you can use NFS also with windows. So the following hint on the vagrant documentation page is no longer true.
|
24
|
+
|
25
|
+
```
|
26
|
+
Windows users: NFS folders do not work on Windows hosts. Vagrant will ignore your request for NFS synced folders on Windows.
|
27
|
+
```
|
data/bin/nfsservice.bat
CHANGED
@@ -1,41 +1,57 @@
|
|
1
1
|
@echo off
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
|
3
|
+
:: Fancy way to enable command extensions, where available
|
4
|
+
:: http://technet.microsoft.com/en-us/library/bb491001.aspx OR http://www.robvanderwoude.com/allhelpw2ksp4_en.php#SETLOCAL
|
5
|
+
verify other 2>nul
|
6
|
+
setlocal enableextensions
|
7
|
+
if errorlevel 1 echo Unable to enable command extensions
|
8
|
+
|
9
|
+
for /f "tokens=1 delims= " %%y in ('tasklist /nh /fi "imagename eq winnfsd.exe"') do @set result=%%y
|
10
|
+
|
11
|
+
CALL :LoCase %result
|
5
12
|
|
6
13
|
if %1==status (
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
) else (
|
12
|
-
:: printf "running\n"
|
14
|
+
echo|set /p=[NFS] Status:
|
15
|
+
|
16
|
+
if %result%==winnfsd.exe (
|
17
|
+
echo running
|
13
18
|
exit 0
|
19
|
+
) else (
|
20
|
+
echo halted
|
21
|
+
exit 1
|
14
22
|
)
|
15
23
|
)
|
16
24
|
|
17
25
|
if %1==start (
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
26
|
+
echo|set /p=[NFS] Start:
|
27
|
+
|
28
|
+
if %result%==winnfsd.exe (
|
29
|
+
echo already running
|
22
30
|
) else (
|
23
|
-
|
31
|
+
start "" "%~dp0winnfsd" -log off -pathFile %2
|
32
|
+
echo started
|
24
33
|
)
|
25
34
|
|
26
35
|
exit 0
|
27
36
|
)
|
28
37
|
|
29
38
|
if %1==halt (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
) else (
|
39
|
+
echo|set /p=[NFS] Halt:
|
40
|
+
|
41
|
+
if %result%==winnfsd.exe (
|
34
42
|
taskkill /f /im "winnfsd.exe" >nul
|
35
|
-
|
43
|
+
echo halt
|
44
|
+
) else (
|
45
|
+
echo not running
|
36
46
|
)
|
37
47
|
|
38
48
|
exit 0
|
39
49
|
)
|
40
50
|
|
41
|
-
exit 1
|
51
|
+
exit 1
|
52
|
+
|
53
|
+
:LoCase
|
54
|
+
:: Subroutine to convert a variable VALUE to all lower case.
|
55
|
+
:: The argument for this subroutine is the variable NAME.
|
56
|
+
FOR %%i IN ("A=a" "B=b" "C=c" "D=d" "E=e" "F=f" "G=g" "H=h" "I=i" "J=j" "K=k" "L=l" "M=m" "N=n" "O=o" "P=p" "Q=q" "R=r" "S=s" "T=t" "U=u" "V=v" "W=w" "X=x" "Y=y" "Z=z") DO CALL SET "%1=%%%1:%%~i%%"
|
57
|
+
GOTO:EOF
|
data/bin/winnfsd.exe
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-winnfsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! ' Manage and adds support for NFS on windows.
|
15
15
|
|
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
segments:
|
54
54
|
- 0
|
55
|
-
hash: -
|
55
|
+
hash: -561909901
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
segments:
|
63
63
|
- 0
|
64
|
-
hash: -
|
64
|
+
hash: -561909901
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
67
|
rubygems_version: 1.8.28
|