apeman-task-hosts
v2.0.0
Published
apeman task to rewrite hosts file.
Downloads
5
Readme
apeman-task-hosts
apeman task to rewrite hosts file.
Installation
$ npm install apeman-task-hosts --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-hosts */
'use strict'
module.exports = {
$pkg: {/* ... */},
$tasks: {
'hosts:add': require('apeman-task-hosts')({
'my-app.example.com': '192.168.1.11'
})
}
}
Then,
$ apeman task hosts:add
Signature
define(hosts, options) -> function
apeman task to rewrite hosts file.
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | hosts | object | | Values to set. | | options | object | | Optional settings. |
License
This software is released under the MIT License.