From abb0d278a3fc2b57224f0a4d3068676a51bb1146 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sun, 5 Nov 2017 22:49:48 +0530 Subject: [PATCH] Rename util to utils --- actions/createProxyServer.js | 6 +++--- actions/createStaticServer.js | 6 +++--- actions/killServer.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/actions/createProxyServer.js b/actions/createProxyServer.js index 39e70fd..666cd29 100644 --- a/actions/createProxyServer.js +++ b/actions/createProxyServer.js @@ -1,9 +1,9 @@ var fs = require('fs-extra'); var shell = require('shelljs'); -var npath = require('../util/nginxPath'); -var conf = require('../util/nginxConf'); -var nginxReload = require('../util/nginxReload'); +var npath = require('../utils/nginxPath'); +var conf = require('../utils/nginxConf'); +var nginxReload = require('../utils/nginxReload'); var EOL = require('os').EOL; // \n if used on Linux, \r\n if used on Windows. diff --git a/actions/createStaticServer.js b/actions/createStaticServer.js index 53c3c6a..8c09997 100644 --- a/actions/createStaticServer.js +++ b/actions/createStaticServer.js @@ -2,9 +2,9 @@ var fs = require('fs-extra'); var shell = require('shelljs'); var path = require('path'); -var npath = require('../util/nginxPath'); -var conf = require('../util/nginxConf'); -var nginxReload = require('../util/nginxReload'); +var npath = require('../utils/nginxPath'); +var conf = require('../utils/nginxConf'); +var nginxReload = require('../utils/nginxReload'); var currentPath = path.normalize(process.cwd()); var EOL = require('os').EOL; // \n if used on Linux, \r\n if used on Windows. diff --git a/actions/killServer.js b/actions/killServer.js index 0341810..ed0d25d 100644 --- a/actions/killServer.js +++ b/actions/killServer.js @@ -1,8 +1,8 @@ var shell = require('shelljs'); -var npath = require('../util/nginxPath'); -var conf = require('../util/nginxConf'); -var nginxReload = require('../util/nginxReload'); +var npath = require('../utils/nginxPath'); +var conf = require('../utils/nginxConf'); +var nginxReload = require('../utils/nginxReload'); function killServer(domain, outPort) { shell.rm('-rf', conf(npath.enabledSites(), domain, outPort));