2.0.0 • Published 9 years ago

apeman-task-hosts v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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
NameTypeDefaultDescription
hostsobjectValues to set.
optionsobjectOptional settings.

License

This software is released under the MIT License.

Links

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago