Skip to content

Commit

Permalink
Merge 73c6c22 into 45701ad
Browse files Browse the repository at this point in the history
  • Loading branch information
coaxial committed Oct 8, 2018
2 parents 45701ad + 73c6c22 commit e90c6f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
9 changes: 0 additions & 9 deletions generators/molecule/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const Generator = require('yeoman-generator');
const chalk = require('chalk');
const mkdirp = require('mkdirp');

const fsPath = require('path');

const { PLATFORMS, URLS } = require('../constants');
const { listPlatforms, listVersions, moleculePlatforms } = require('../helpers');

Expand Down Expand Up @@ -153,14 +151,7 @@ module.exports = class extends Generator {

writing() {
const { mode, repoName, targetVersions, useTravis, convergePath } = this.props;
const destinationPath = repoName;

// Create role directory if it doesn't already exist and set it as the root
if (fsPath.basename(this.destinationPath()) !== destinationPath) {
this.log(`Creating your new role in ${destinationPath}...`);
mkdirp(destinationPath);
this.destinationRoot(this.destinationPath(destinationPath));
}
// Create the rest of the directories
const dirs = ['molecule/default/tests'];

Expand Down
28 changes: 7 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e90c6f7

Please sign in to comment.