LocalMachinepacks.removeMachine()

Remove a machine from a local pack and update the package.json file.

Usage

Hover over inputs/exits for more info.

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


// Remove a machine from a local pack and update the package.json file.

LocalMachinepacks.removeMachine({

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

identity: 'some-machine',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// No machine with the specified identity exists in this machinepack.

notFound: function () {

 

},

// OK.

success: function () {

 

},

});

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/'
identity required

Identity of the machine to remove

'some-machine'

Exits

error

An unexpected error occurred.

notFound

No machine with the specified identity exists in this machinepack.

success

OK.