This commit is contained in:
2019-01-16 09:09:54 +08:00
parent 0cc08f136d
commit b2eeb13f83
12 changed files with 29 additions and 150 deletions

View File

@@ -22,7 +22,7 @@ const logger = {
function Objects(cb) {
if (!(this instanceof Objects)) return new Objects(cb);
const _Objects = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/objects');
const _Objects = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/objects');
this.connected = false;
const that = this;

View File

@@ -407,7 +407,7 @@ function clearControllerLog() {
}
function clearDB() {
const dirPath = rootDir + 'tmp/iobroker-data/sqlite';
const dirPath = rootDir + 'tmp/yunkong2-data/sqlite';
let files;
try {
if (fs.existsSync(dirPath)) {

View File

@@ -21,7 +21,7 @@ const logger = {
function States(cb, stateChange) {
const that = this;
const _States = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/states');
const _States = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/states');
let callbackId = 0;
const options = {

View File

@@ -53,12 +53,12 @@ describe('Test package.json and io-package.json', () => {
console.log();
}
if (
ioPackage.common.title.indexOf('iobroker') !== -1 ||
ioPackage.common.title.indexOf('ioBroker') !== -1 ||
ioPackage.common.title.indexOf('yunkong2') !== -1 ||
ioPackage.common.title.indexOf('yunkong2') !== -1 ||
ioPackage.common.title.indexOf('adapter') !== -1 ||
ioPackage.common.title.indexOf('Adapter') !== -1
) {
console.log('WARNING: title contains Adapter or ioBroker. It is clear anyway, that it is adapter for ioBroker.');
console.log('WARNING: title contains Adapter or yunkong2. It is clear anyway, that it is adapter for yunkong2.');
console.log();
}