This module manages a project's clusternator.json

Source:
To Do:
  • this module currently does way to much, pare it down

Members

(inner, constant) VCS_DIR

Source:
To Do:
  • make VCS_DIR configurable

Methods

(inner) addPortAnswer(mainAnswers, portAnswers) → {boolean}

Parameters:
Name Type Description
mainAnswers Object
portAnswers Object
Source:
Returns:
Type
boolean

(inner) addToIgnore(ignoreFileName, toIgnore) → {Request|Promise.<T>|*}

Parameters:
Name Type Description
ignoreFileName string
toIgnore string | Array.<string>
Source:
Returns:
Type
Request | Promise.<T> | *

(inner) answersToClusternatorJSON(answers) → {string}

Parameters:
Name Type Description
answers Object
Source:
Returns:
Type
string

(inner) createInteractive(paramsopt) → {Q.Promise.<Array>}

Parameters:
Name Type Attributes Description
params Object <optional>
Source:
Returns:
Type
Q.Promise.<Array>

(inner) deDupe(strings) → {Array}

Parameters:
Name Type Description
strings Array.<string>
Source:
Returns:
Type
Array

(inner) findBowerName(projectRoot) → {string}

Parameters:
Name Type Description
projectRoot string
Source:
Returns:
Type
string

(inner) findPackageName(projectRoot) → {string}

Parameters:
Name Type Description
projectRoot string
Source:
Returns:
Type
string

(inner) findProjectNames(projectRoot) → {Q.Promise.<Array.<string>>}

Parameters:
Name Type Description
projectRoot string
Source:
Returns:
Type
Q.Promise.<Array.<string>>

(inner) fullPath(dirPath) → {string}

Parameters:
Name Type Description
dirPath string

directory of project root

Source:
Returns:
Type
string

(inner) getConfig() → {Q.Promise.<Object>}

Source:
Returns:
Type
Q.Promise.<Object>

(inner) getProjectRootRejectIfClusternatorJsonExists() → {Q.Promise.<string>}

Source:
Returns:
Type
Q.Promise.<string>

(inner) ignoreHasItem(toIgnore, ignores) → {boolean}

Parameters:
Name Type Description
toIgnore string
ignores Array.<string>
Source:
Returns:
Type
boolean

(inner) ignorePath(ignoreFileName) → {Q.Promise.<string>}

Parameters:
Name Type Description
ignoreFileName string
Source:
Returns:
Type
Q.Promise.<string>

(inner) makePrivate(passPhrase) → {Q.Promise}

Given a passphase make private tars, and encrypts a config's private section

Parameters:
Name Type Description
passPhrase String
Source:
Returns:
Type
Q.Promise

(inner) parseGitUrl(url) → {string}

Parameters:
Name Type Description
url string
Source:
Returns:
Type
string

(inner) privateExists() → {Q.Promise}

Resolves if the

Source:
Returns:
Type
Q.Promise

(inner) readAndSplitIgnore(file) → {Q.Promise.<Array.<string>>}

Parameters:
Name Type Description
file string
Source:
Returns:
Type
Q.Promise.<Array.<string>>

(inner) readIgnoreFile(ignoreFileName, isFullPathopt) → {Q.Promise.<Array.<string>>}

Parameters:
Name Type Attributes Description
ignoreFileName string
isFullPath boolean <optional>

defaults to false

Source:
Returns:
Type
Q.Promise.<Array.<string>>

(inner) readPrivate(passPhrase, root=) → {Q.Promise}

Parameters:
Name Type Description
passPhrase string
root= string
Source:
Returns:
Type
Q.Promise

(inner) skipIfExists(dir) → {Q.Promise}

Rejects if the file exists, resolves otherwise

Parameters:
Name Type Description
dir string
Source:
Returns:
Type
Q.Promise

(inner) splitIgnoreFile(file) → {Array.<string>}

Parameters:
Name Type Description
file string
Source:
Returns:
Type
Array.<string>

(inner) untar(tarPath) → {Q.Promise}

Parameters:
Name Type Description
tarPath string
Source:
Returns:
Type
Q.Promise

(inner) writeFromAnswers(Object) → {Q.Promise}

Parameters:
Name Type Description
Object answers
Source:
Returns:
Type
Q.Promise