fleet-get-ps

1.0.1 • Public • Published

Fleet Get PS

Get the running fleet processes as an object. The output is the same as running fleet-ps but is returned as an object rather than a string

Installation

npm install -S fleet-get-ps

Usage

var getPS = require('fleet-get-ps')
var data = {
  host: 'localhost',   // fleet hub host
  port: 7000,          // fleet hub port
  secret: 'foo_secret, // fleet hub secret
}
getPS(data, function (err, reply) {
  if (err) {
    inspect(err, 'error getting fleet ps data')
    return
  }
  inspect(reply, 'fleet ps data')
})

Test

# install the development dependencies 
npm install
# run the tests 
npm test

Readme

Keywords

none

Package Sidebar

Install

npm i fleet-get-ps

Weekly Downloads

0

Version

1.0.1

License

BSD

Last publish

Collaborators

  • clewfirst