run(options) {
        options = options || {};

        return new Promise((resolve, reject) => {
            cp.exec(`${this.cliPath} ${this.command}`, {
                env: Object.assign({}, process.env, options.env || {}),
                cwd: this.dir
            }, (err, stdout, stderr) => {
                if (err || (options.failOnStdErr && stderr.length > 0)) {
                    err = err || new Error('\n');
                    err.message += `'ghost ${this.command}' failed\ncwd: ${this.cwd}\n` +
                        `stdout:\n ${stdout} \nstderr: ${stderr}`;
                    reject(err);
                } else {
                    resolve({
                        stdout: stdout,
                        stderr: stderr,
                        dir: this.dir
                    });
                }
            });
        });
    }
/**
     * Runs the particular AcceptanceTest command without parsing contents
     * Returns a promise that resolves when the command succeeds, or rejects if
     * a) the command fails, or b) options.failOnStdErr is set to true and output
     * is rendered to stdErr
     *
     * @param {Object} options options
     *                         - failOnStdErr: fail if stderr is written to
     *                         - env: environment variables to pass to the process
     *
     * @return {Promise} Promise that resolves if the command succeeds, otherwise rejects
     */
Runs the particular AcceptanceTest command without parsing contents
Returns a promise that resolves when the command succeeds, or rejects if
a) the command fails, or b) options.failOnStdErr is set to true and output
is rendered to stdErr

@param {Object} options options
- failOnStdErr: fail if stderr is written to
- env: environment variables to pass to the process

@return {Promise} Promise that resolves if the command succeeds, otherwise rejects
Runs the particular AcceptanceTest command without parsing contents Returns a promise that resolves when the command succeeds or rejects if a ) the command fails or b ) options . failOnStdErr is set to true and output is rendered to stdErr @param { Object } options options - failOnStdErr : fail if stderr is written to - env : environment variables to pass to the process @return { Promise } Promise that resolves if the command succeeds otherwise rejects
run(options) {
        options = options || {};
        return new Promise((resolve, reject) => {
            cp.exec(`${this.cliPath} ${this.command}`, {
                env: Object.assign({}, process.env, options.env || {}),
                cwd: this.dir
            }, (err, stdout, stderr) => {
                if (err || (options.failOnStdErr && stderr.length > 0)) {
                    err = err || new Error('\n');
                    err.message += `'ghost ${this.command}' failed\ncwd: ${this.cwd}\n` +
                        `stdout:\n ${stdout} \nstderr: ${stderr}`;
                    reject(err);
                } else {
                    resolve({
                        stdout: stdout,
                        stderr: stderr,
                        dir: this.dir
                    });
                }
            });
        });
    }
run ( options ) { options = options || { } ; return new Promise ( ( resolve , reject ) => { cp . exec ( ` ${ this . cliPath } ${ this . command } ` , { env : Object . assign ( { } , process . env , options . env || { } ) , cwd : this . dir } , ( err , stdout , stderr ) => { if ( err || ( options . failOnStdErr && stderr . length > 0 ) ) { err = err || new Error ( '\n' ) ; err . message += ` ${ this . command } \n ${ this . cwd } \n ` + ` \n ${ stdout } \n ${ stderr } ` ; reject ( err ) ; } else { resolve ( { stdout : stdout , stderr : stderr , dir : this . dir } ) ; } } ) ; } ) ; }
Runs the particular AcceptanceTest command without parsing contents
 Returns a promise that resolves when the command succeeds, or rejects if
 a) the command fails, or b) options.failOnStdErr is set to true and output
 is rendered to stdErr
Runs the particular AcceptanceTest command without parsing contents Returns a promise that resolves when the command succeeds or rejects if a ) the command fails or b ) options . failOnStdErr is set to true and output is rendered to stdErr