LocalSailsApps.getSignature()

Lookup top-level metadata, dehydrate the machine definitions, and compute a hash for the public API of this app.

Usage

Hover over inputs/exits for more info.

var LocalSailsApps = require('machinepack-local-sails-apps');


// Lookup top-level metadata, dehydrate the machine definitions, and compute a hash for the public API of this app.

LocalSailsApps.getSignature({

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

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

dir required

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

'/Users/mikermcneil/foo/'

Exits

error

An unexpected error occurred.

success

OK.

{ pack: {},
  machines: [ {} ],
  packHash: 'a8319azj39$29130nfan3',
  machineHashes: 
   [ { machine: 'some-machine-identity',
       hash: '1390ba9z9140$1-3a914n4' } ],
  npmDependencies: [ { name: 'lodash', semverRange: '^3.9.0' } ] }