apeman-task-hosts

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i apeman-task-hosts

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • okunishinishi