This module is used by the server to provide a REST interface to the CLI

Version:
  • 0.1.0
Source:

Methods

(inner) changePass(body) → {Q.Promise}

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

(inner) changeSlackChannel(body, body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) createData(body) → {Promise}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Promise

(inner) createProject(body) → {body.projectId}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
body.projectId

(inner) createUser(body)

Parameters:
Name Type Description
body Object
Source:

(inner) findOrCreate(s, projectId, repoName) → {Promise}

Parameters:
Name Type Description
s Object
projectId string
repoName string
Source:
Returns:
Type
Promise

(inner) getCommands(config, projectDb) → {Object}

Parameters:
Name Type Description
config
projectDb
Source:
Returns:
Type
Object

(inner) getKey(body, attr) → {Q.Promise.<string>}

Parameters:
Name Type Description
body Object
attr string
Source:
Returns:
Type
Q.Promise.<string>

(inner) gitHubKey(body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) init(config, projectDb) → {Q.Promise.<{config: Object, db: Object, pm: Object}>}

Parameters:
Name Type Description
config Object
projectDb object
Source:
Returns:
Type
Q.Promise.<{config: Object, db: Object, pm: Object}>

(inner) initPmState(state) → {Q.Promise.<{config: Object, db: Object, pm: Object}>}

Parameters:
Name Type Description
state Object
Source:
Returns:
Type
Q.Promise.<{config: Object, db: Object, pm: Object}>

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

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

(inner) listProjects(body) → {Q.Promise.<Array.<string>>}

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

(inner) listSSHAbleInstances(body) → {Q.Promise.<Array.<string>>}

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

(inner) makeTokenName(projectId) → {*}

Parameters:
Name Type Description
projectId
Source:
Returns:
Type
*

(inner) newKey(dbRow, attr) → {Object}

Parameters:
Name Type Description
dbRow Object
attr string
Source:
Returns:
Type
Object

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

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

(inner) pmCreateDeployment(body) → {Q.Promise}

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

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

Source:
Returns:
Type
Q.Promise

(inner) prDestroy(body) → {Q.Promise}

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

(inner) resetAuthToken(body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) resetData(details, repoName) → {Q.Promise.<Array.<Object>>}

Parameters:
Name Type Description
details Object
repoName name
Source:
Returns:
Type
Q.Promise.<Array.<Object>>

(inner) resetGitHubKey(body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) resetIfFound(s, row, projectId, repoName) → {Promise}

Parameters:
Name Type Description
s Object
row Object
projectId string
repoName string
Source:
Returns:
Type
Promise

(inner) resetKey(body, attr) → {Q.Promise.<string>}

Parameters:
Name Type Description
body Object
attr string
Source:
Returns:
Type
Q.Promise.<string>

(inner) resetSharedKey(body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) sanitizePr(pr) → {string}

Parameters:
Name Type Description
pr *
Source:
Returns:
Type
string

(inner) sharedKey(body) → {Q.Promise.<{data: string}>}

Parameters:
Name Type Description
body Object
Source:
Returns:
Type
Q.Promise.<{data: string}>

(inner) state(configopt) → {Q.Promise.<{config: Object, db: Object, pm: Object}>}

Parameters:
Name Type Attributes Description
config Object <optional>
Source:
Returns:
Type
Q.Promise.<{config: Object, db: Object, pm: Object}>