lib/cli-controller.js
/*
 * shuts the beacon process down if running
 */
shuts the beacon process down if running
shuts the beacon process down if running
function beaconDown() {
    beacon.checkIfRunning()
    .then(function(running) {
        if(running) {
            return beacon.stop();
        }
        else {
            console.log("The beacon is not up.");
        }
    })
    .then(function(stopped) {
        if(stopped) {
            console.log("The beacon is now down.");
        }
        else if(stopped === false) {
            console.error("Failed to take beacon down.");
        }
    });
}
function beaconDown ( ) { beacon . checkIfRunning ( ) . then ( function ( running ) { if ( running ) { return beacon . stop ( ) ; } else { console . log ( "The beacon is not up." ) ; } } ) . then ( function ( stopped ) { if ( stopped ) { console . log ( "The beacon is now down." ) ; } else if ( stopped === false ) { console . error ( "Failed to take beacon down." ) ; } } ) ; }
shuts the beacon process down if running
shuts the beacon process down if running