Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Created by ryan on 15/8/17.
*/
var fs = require('fs'),
path = require('path');
var fis = require('fis3');
var _ = fis.util,
config = fis.config;
var expect = require('chai').expect;
var _release = fis.require('command-release/lib/release.js');
var _deploy = fis.require('command-release/lib/deploy.js');
var _self = require('../');
function release(opts, cb) {
opts = opts || {};
_release(opts, function(error, info) {
_deploy(info, cb);
});
}
function hookSelf(opts) {
var key = 'modules.hook';
var origin = fis.get(key);
if (origin) {
origin = typeof origin === 'string' ? origin.split(/\s*,\s*/) : (Array.isArray(origin) ? origin : [origin]);
/**
* Created by ryan on 15/7/28.
*/
var fs = require('fs'),
path = require('path');
var fis = require('fis3');
var _ = fis.util,
config = fis.config;
var expect = require('chai').expect;
var resource = require('../lib/resource.js');
var pack = require('../lib/pack.js');
var _release = fis.require('command-release/lib/release.js');
var _deploy = fis.require('command-release/lib/deploy.js');
var loader = require('../');
function wrapLoader(options) {
return function(ret, pack, settings, opt) {
settings = _.assign({}, loader.defaultOptions);
_.assign(settings, options);
return loader.call(this, ret, pack, settings, opt);
}
};
function release(opts, cb) {
opts = opts || {};
_release(opts, function(error, info) {
_deploy(info, cb);
/**
* Created by ryan on 15/8/17.
*/
var fs = require('fs'),
path = require('path');
var fis = require('fis3');
var _ = fis.util,
config = fis.config;
var expect = require('chai').expect;
var _release = fis.require('command-release/lib/release.js');
var _deploy = fis.require('command-release/lib/deploy.js');
var _self = require('../');
function release(opts, cb) {
opts = opts || {};
_release(opts, function(error, info) {
_deploy(info, cb);
});
}
function hookSelf(opts) {
var key = 'modules.hook';
var origin = fis.get(key);
if (origin) {
/**
* Created by ryan on 15/7/28.
*/
var fs = require('fs'),
path = require('path');
var fis = require('fis3');
var _ = fis.util,
config = fis.config;
var expect = require('chai').expect;
var resource = require('../lib/resource.js');
var pack = require('../lib/pack.js');
var _release = fis.require('command-release/lib/release.js');
var _deploy = fis.require('command-release/lib/deploy.js');
var loader = require('../');
function wrapLoader(options) {
return function(ret, pack, settings, opt) {
settings = _.assign({}, loader.defaultOptions);
_.assign(settings, options);
return loader.call(this, ret, pack, settings, opt);
}
};
function release(opts, cb) {
opts = opts || {};
_release(opts, function(error, info) {
_deploy(info, cb);
});