// Helper to get excludes const getExcludes = (data = [], inverse = false) => _(data) .filter(exclude => _.startsWith(exclude, '!') === inverse) .map(exclude => _.trimStart(exclude, '!')) .uniq() .compact() .value()
// Helper to find the default service const getDefaultService = data => { if (_.has(data, 'service')) { if (_.startsWith(data.service, ':')) { const option = _.trimStart(data.service, ':'); return _.get(data, `options.${option}.default`, 'appserver'); } else { return _.get(data, 'service'); } } else { return 'appserver'; } }
_(process.env) // Only muck with prefix_ variables .pickBy((value, key) => _.includes(key, prefix)) // Prep the keys for consumption .mapKeys((value, key) => _.camelCase(_.trimStart(key, prefix))) // If we have a JSON string as a value, parse that and assign its sub-keys .mapValues(exports.tryConvertJson) // Resolve the lodash wrapper .value()
version: _.trimStart(_.get(latest, 'tag_name', version), 'v'), url: _.get(latest, 'html_url', ''), expires: Math.floor(Date.now()) + 86400000,
if (logName!='log.txt') { logName = _.trimStart(logName, 'log_' ); logName = _.trimEnd(logName,'.txt\n');
}else if(`; let tmp = _.split(_.split(_.trimStart(value, '$.'), '[', 1), '.', 4); if(tmp.length === 4){ tmp = _.join(tmp, '.');
var taskName = _.trimStart(expectedDebugLog, '.');
DockerController.run(_.trimStart(_.get(results.details, 'config.container', 'alpine:3.4'), '~'), [_.get(results.details, 'config.entry', 'ash'), '/mnt/install/install.sh'], (Config.get('logger.level', 'info') === 'debug') ? process.stdout : this.processLogger, { Tty: true, AttachStdin: true,
var TagName = _.trimStart(TagNameRaw,'_'); var TagInfo = self.Data.Tag[TagName]; var Obj = self.Data.Div[CodeObj];
.map(s => _.trimStart(s, "-")) .filter(s => s !== "id");
}else if(`; let tmp = _.split(_.split(_.trimStart(value, '$.'), '[', 1), '.', 4); if(tmp.length === 4){ tmp = _.join(tmp, '.');
}else if(`; let tmp = _.split(_.split(_.trimStart(value, '$.'), '[', 1), '.', 4); if(tmp.length === 4){ tmp = _.join(tmp, '.');
}else if(`; let tmp = _.split(_.split(_.trimStart(value, '$.'), '[', 1), '.', 4); if(tmp.length === 4){ tmp = _.join(tmp, '.');
.map(s => _.trimStart(s, "-")) .filter(s => s !== "id");