apeman-task-hosts
apeman task to rewrite hosts file.
Last updated 2 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-task-hosts 
SYNC missed versions from official npm registry.

apeman-task-hosts

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to rewrite hosts file.

Installation

$ npm install apeman-task-hosts --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. 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.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (3)
Dev Dependencies (11)

Copyright 2014 - 2018 © taobao.org |