willprice/generator-ansible

View on GitHub

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

createGroupVarsFiles: function () {
playbookOptions.groups.forEach(function (group) {
this._copyTemplateToDesination('group_vars/group_var.ejs', 'group_vars/' + group)
}.bind(this))
},
Severity: Major
Found in app/index.js and 1 other location - About 1 hr to fix
app/index.js on lines 49..53

Similar blocks of code found in 2 locations. Consider refactoring.
Open

createHostVarsFiles: function () {
playbookOptions.hosts.forEach(function (host) {
this._copyTemplateToDesination('host_vars/host_var.ejs', 'host_vars/' + host)
}.bind(this))
},
Severity: Major
Found in app/index.js and 1 other location - About 1 hr to fix
app/index.js on lines 55..59
Severity
Category
Status
Source
Language