https://github.com/opentable/grunt-mount
grunt task to mount a network share
https://github.com/opentable/grunt-mount
Last synced: 12 months ago
JSON representation
grunt task to mount a network share
- Host: GitHub
- URL: https://github.com/opentable/grunt-mount
- Owner: opentable
- License: mit
- Archived: true
- Created: 2013-08-15T08:56:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T04:28:50.000Z (over 10 years ago)
- Last Synced: 2025-07-17T15:12:06.652Z (12 months ago)
- Language: JavaScript
- Size: 199 KB
- Stars: 2
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-mount [](https://travis-ci.org/opentable/grunt-mount) [](http://badge.fury.io/js/grunt-mount) 
Grunt task to mount/unmount a network share
Provides two tasks: mount and unmount.
# Installation
```js
npm install --save-dev grunt-mount
```
# Configuration
```js
grunt.initConfig({
mount: {
share: {
options: {
windows: { // windows specific options
driveLetter: "X"
},
'*nix': { // *nix specific options
fileSystem: "smbfs", // equivalent to 'mount -t [smbfs|cifs|nfs]'
},
share: {
host: "my.server.com",
folder: "/path/on/server" // paths can be windows or *nix style (will be normalised)
},
mountPoint: "./share", // path to mount the share (can be windows or unix style)
username: "someuser",
password: "password"
}
}
},
unmount: {
share: {
options: {
windows:{ // windows specific options
driveLetter: "X"
},
mountPoint: "./share"
}
}
}
});
grunt.loadNpmTasks('grunt-mount');
```
On *nix systems, the share will be mounted at the specified mount-point. On Windows, the share will be mounted on the specified drive letter, and a symlink will be created at the mount-point.
# Limitations:
- Only works for Linux, MacOS and Windows (FreeBSD and SunOS coming)
- Must specify a drive letter for Windows
- MountPoint must be relative path in order for Windows compatibility