mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
14 lines
387 B
JavaScript
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;
|