Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function(cb) {
var options = {
api: deriveServiceApi(name),
baseuri: account.baseuri,
organization: account.organization,
username: account.username,
password: account.password,
environment: account.environment
};
apigeetool.undeploy(options, function(err) {
if (err) { return cb(err); }
apigeetool.delete(options, cb);
});
},
function(cb) {
function undeployProject(account, project, options, cb) {
var opts = buildApigeetoolOpts(account, {
api: project.api.name
});
apigeetool.undeploy(opts, cb);
}