shipit-utils
Install
npm install --save shipit-utils
Usage
var utils = ;
Methods
utils.getShipit(gruntOrShipit)
Returns the Shipit object, regardless of your context (Grunt or Shipit).
var shipit = utils;
utils.registerTask(gruntOrShipit, name, [description,] task)
Register a task, regardless of your context (Grunt or Shipit).
The description arguement is optional, and will only try to pass along a task description if you are using Grunt (it will be ignored if you are using Shipit).
Fn
|Array<String>
task Task function or array of task names to run in order. Note: If in a Grunt context and passing an array of task names, task will always be synchronous/blocking.
Examples
var { return shipit;}; // Register a (blocking) taskutils; // Run a series of tasks in orderutils;
utils.runTask(gruntOrShipit, task)
Run a task or array of tasks, regardless of your context (Grunt or Shipit).
String
|Array<String>
task utils.equalValues(values)
Test to see if all the values in an array are equal. Useful for determining if multiple remote servers are out of sync.
Array
values License
MIT