LocalMachinepacks.listMachines()

List the machines in a local pack.

Usage

Hover over inputs/exits for more info.

var LocalMachinepacks = require('machinepack-localmachinepacks');


// List the machines in a local pack.

LocalMachinepacks.listMachines({

dir: '/Users/mikermcneil/machinepack-foo/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The specified path is not the root directory of a machinepack

notMachinepack: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

dir required

The path to the machinepack (if path is not absolute, will be resolved from the current working directory)

'/Users/mikermcneil/machinepack-foo/'

Exits

error

An unexpected error occurred.

notMachinepack

The specified path is not the root directory of a machinepack

success

OK.

[ 'do-a-thing', 'do-something-else' ]