Sha256: cb04817dcca9566d5ac1c2ac30079c556bb3246547e7bb0d50d303cf70cde5c1

Contents?: true

Size: 815 Bytes

Versions: 62

Compression:

Stored size: 815 Bytes

Contents

var Project = require('../core/Project');
var defaultConfig = require('../config');

function update(logger, names, options, config) {
    var project;

    options = options || {};
    config = defaultConfig(config);
    project = new Project(config, logger);

    // If names is an empty array, null them
    if (names && !names.length) {
        names = null;
    }

    return project.update(names, options);
}

// -------------------

update.readOptions = function (argv) {
    var cli = require('../util/cli');

    var options = cli.readOptions({
        'force-latest': { type: Boolean, shorthand: 'F' },
        'production': { type: Boolean, shorthand: 'p' }
    }, argv);

    var names = options.argv.remain.slice(1);

    delete options.argv;

    return [names, options];
};

module.exports = update;

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.3.21 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.20 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.19 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.18 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.17 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.16 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.15 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.14 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.13 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.12 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.11g node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.10 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.9 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.8 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.7 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.6 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.5 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.4 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.3 node_modules/bower/lib/commands/update.js
trusty-festivity-extension-2.3.2 node_modules/bower/lib/commands/update.js