Skip to content

Commit bf58537

Browse files
author
David
authored
Merge pull request #18 from leedium/v2.3.1
V2.3.1
2 parents 9269978 + 4aafc0d commit bf58537

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,27 @@ There is almost to 70% savings in time including the DCU and PLSU transfer proce
77
This is still a work in process but has saved me quite some time
88
*Web Content data is currently not supported and coming in a later OCC release. (Dec 2018)
99

10-
### version
11-
2.1.1
12-
- fixes issue with global files not copying
10+
## \*\* There have been a few users who have reported issues with nodegit and getting the following error:
11+
`Error: Cannot find module '../build/Debug/nodegit.node'`
12+
I can't simulate this issue. If I have time I can look further, but please try [version 2.0.0](https://github.com/leedium/occ-instance-migrator/tree/v2.0.0) as it uses the os installed version of git (which you need to have installed) so give that a try and let me know
13+
14+
### current version
15+
2.3.1
16+
17+
#### change log
18+
2.3.1
19+
- error handling for missing options/parameters
20+
21+
2.2.1
22+
- fixes issue with global files not copying
1323

1424
2.1.0
15-
- remove os installed git for npm node git
16-
- other bug fixes
25+
- remove os-installed git dependency for npm nodegit
26+
- other bug fixes
1727

28+
2.0.0
29+
- working version with os-git dependency
30+
1831
# ATTENTION
1932
REMEMBER, this will use DCU/PLUS transferALL from TARGET to SOURCE instance. PLEASE KNOW WHAT YOU ARE DOING.
2033

app/app.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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,12 +92,7 @@ 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-
96-
start();
95+
start();
9796

9897
/**
9998
* Task to clean the working folder before DCU grab executes
@@ -165,7 +164,7 @@ exports.main = function(argv) {
165164
// DCU TransferAll assets to target server
166165
await transferAll(program);
167166
}
168-
else{
167+
else{
169168
resolve();
170169
}
171170

app/occ-token-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const loginToOCC = (adminServer, token) => {
5959
*/
6060
const generateToken = async (server, token) => {
6161
return new Promise((resolve, reject) => {
62-
server.indexOf(HTTPS_PREFIX) !== 0 ? `${HTTPS_PREFIX}${server}` : server;
62+
server = server.indexOf(HTTPS_PREFIX) !== 0 ? `${HTTPS_PREFIX}${server}` : server;
6363
const req = function ({ data }){
6464
// store the token(s) in a hash
6565
tokens[server] = data.access_token;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "occ-instance-migrator",
3-
"version": "2.1.1",
3+
"version": "2.3.1",
44
"description": "Tools to help with Oracle Commerce Cloud Solutions",
55
"bin": {
66
"oim": "./index.js"

0 commit comments

Comments
 (0)