serverless/lib/plugins/run/utils/eventGatewayInstalled.js
2017-08-03 20:40:24 +07:00

14 lines
387 B
JavaScript

'use strict';
const path = require('path');
const os = require('os');
const fileExistsSync = require('../../../utils/fs/fileExistsSync');
function eventGatewayInstalled() {
const eventGatewayBinaryFilePath = path
.join(os.homedir(), '.serverless', 'event-gateway', 'event-gateway');
return fileExistsSync(eventGatewayBinaryFilePath);
}
module.exports = eventGatewayInstalled;