lib/main.js
function makeContainer(container_directory, opts) {
    return new Promise(function(resolve, reject) {
        if(fileUtils.fileExists(container_directory)) {
            reject(new Error('Container already exists'));
            return;
        }

        let package_json = {};
        // TODO: build the container
        reject(new Error('Not implemented yet.'));

        // resolve(new Container(container_directory, package_json));
    });
}
function makeContainer(container_directory, opts) {
    return new Promise(function(resolve, reject) {
        if(fileUtils.fileExists(container_directory)) {
            reject(new Error('Container already exists'));
            return;
        }

        let package_json = {};
        // TODO: build the container
        reject(new Error('Not implemented yet.'));

        // resolve(new Container(container_directory, package_json));
    });
}
function makeContainer ( container_directory , opts ) { return new Promise ( function ( resolve , reject ) { if ( fileUtils . fileExists ( container_directory ) ) { reject ( new Error ( 'Container already exists' ) ) ; return ; } let package_json = { } ; // TODO: build the container reject ( new Error ( 'Not implemented yet.' ) ) ; // resolve(new Container(container_directory, package_json)); } ) ; }
Creates a new resource container.
Rejects with an error if the container exists.

@param container_directory {string}
@param opts {{}}
@returns {Promise<Container>}
Creates a new resource container . Rejects with an error if the container exists .