vagrant-winnfsd 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,14 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 1.0.4
5
+ -----
6
+
7
+ Improve batch file
8
+ Update readme
9
+ Update WinNFSd
10
+
11
+
4
12
  1.0.3
5
13
  -----
6
14
 
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
- tasklist /nh /fi "imagename eq winnfsd.exe" 2>nul | grep -i -c "winnfsd.exe" >nfsservicetmp
3
- set /p RUNNINGTASKS=<nfsservicetmp
4
- del nfsservicetmp
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
- :: printf "[NFS] Status: "
8
- if %RUNNINGTASKS% == 0 (
9
- :: printf "halted\n"
10
- exit 1
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
- printf "[NFS] Start: "
19
- if %RUNNINGTASKS% == 0 (
20
- start "" "%~dp0winnfsd" -log off -pathFile %2
21
- printf "started\n"
26
+ echo|set /p=[NFS] Start:
27
+
28
+ if %result%==winnfsd.exe (
29
+ echo already running
22
30
  ) else (
23
- printf "already running\n"
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
- printf "[NFS] Halt: "
31
- if %RUNNINGTASKS% == 0 (
32
- printf "not running\n"
33
- ) else (
39
+ echo|set /p=[NFS] Halt:
40
+
41
+ if %result%==winnfsd.exe (
34
42
  taskkill /f /im "winnfsd.exe" >nul
35
- printf "halt\n"
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantWinNFSd
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
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.3
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-01-20 00:00:00.000000000 Z
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: -499725201
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: -499725201
64
+ hash: -561909901
65
65
  requirements: []
66
66
  rubyforge_project:
67
67
  rubygems_version: 1.8.28