File tree Expand file tree Collapse file tree 1 file changed +4
-30
lines changed
Expand file tree Collapse file tree 1 file changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ exports.main = function(argv) {
5050 git cli - https://git-scm.com/downloads
5151 Oracle DCU - https://docs.oracle.com/cd/E97801_01/Cloud.18C/ExtendingCC/html/s4305usethedcutograbanduploadsourceco01.html `
5252 )
53+ . command (
54+ "oim, -s [sourceserver] -t [sourcekey] -u [targetserver] -v [targetkey]" ,
55+ "Execute a dcu transferAll from source to target instance"
56+ )
5357
5458 . usage (
5559 "-s [sourceserver] -t [sourcekey] -u [targetserver] -v [targetkey]" ,
@@ -88,38 +92,8 @@ exports.main = function(argv) {
8892 . parse ( argv ) ;
8993
9094 //set defaults
91-
92- if ( typeof program . taskdelay === "undefined" || isNaN ( program . taskdelay ) ) {
93- program . taskdelay = constants . TASK_DELAY ;
94- }
95- let errs = [ ] ;
96- try {
97- if ( typeof program . sourceserver === 'undefined' ) {
98- errs . push ( "sourceserver not defined" )
99- }
100- if ( typeof program . sourcekey === 'undefined' ) {
101- errs . push ( "sourcekey not defined" )
102- }
103- if ( typeof program . targetserver === 'undefined' ) {
104- errs . push ( "targetserver not defined" )
105- }
106- if ( typeof program . targetkey === 'undefined' ) {
107- errs . push ( "targetkey not defined" )
108- }
109-
110- if ( errs . length ) {
111- throw new Error ( `Errors:\n${ errs . join ( '\n' ) } ` ) ;
112- }
113-
11495 start ( ) ;
11596
116- }
117- catch ( err ) {
118- console . log ( `${ err . message } ` )
119- }
120-
121-
122-
12397 /**
12498 * Task to clean the working folder before DCU grab executes
12599 * @returns {Promise<*> }
You can’t perform that action at this time.
0 commit comments