setUp() { if (fs.existsSync(this.getProjectPath('.wordup','config.yml'))) { try { this.dotWordupYml = YAML.parseDocument(fs.readFileSync(this.getProjectPath('.wordup','config.yml'), 'utf8')) this.dotWordupJson = this.dotWordupYml.toJSON() } catch (err) { this.error('Could not parse wordup config: '+err, {exit:1}) } // Create the slug as a name. Because it could be also a path const slug = this.wPkg('slug') if(slug){ if (slug.lastIndexOf('/') !== -1) { dotProp.set(this.dotWordupJson, 'slugName', slug.substring(0, slug.lastIndexOf('/'))) } else { dotProp.set(this.dotWordupJson, 'slugName', slug) } } // Get config based on the current path this.config = this._wordupConfigstore.get('projects.' + this.projectId) } }
throw new Error("Failed to read Chart.yaml"); const chart = YAML.parseDocument(chartFileContent); const chartName = chart.getIn(["name"]); if (excludedCharts.length && excludedCharts.indexOf(chartName) !== -1) {