Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 14e0ba1

Browse files
author
David Scheiner
committed
Allows control over download options, esp mongo version
1 parent cd4bb80 commit 14e0ba1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+221
-99
lines changed

README.md

+6

built/bin/bsondump.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/bsondump.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/bsondump.js.map

100755100644
File mode changed.

built/bin/mongo-supervise.d.ts

100755100644
+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/usr/bin/env node
12
declare let parentPid: number;
23
declare let childPid: number;

built/bin/mongo-supervise.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongo-supervise.js.map

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongo.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongo.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongo.js.map

100755100644
File mode changed.

built/bin/mongod.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongod.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongod.js.map

100755100644
File mode changed.

built/bin/mongodump.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongodump.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongodump.js.map

100755100644
File mode changed.

built/bin/mongoexport.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongoexport.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongoexport.js.map

100755100644
File mode changed.

built/bin/mongofiles.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongofiles.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongofiles.js.map

100755100644
File mode changed.

built/bin/mongoimport.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongoimport.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongoimport.js.map

100755100644
File mode changed.

built/bin/mongooplog.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongooplog.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongooplog.js.map

100755100644
File mode changed.

built/bin/mongoperf.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongoperf.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongoperf.js.map

100755100644
File mode changed.

built/bin/mongorestore.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongorestore.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongorestore.js.map

100755100644
File mode changed.

built/bin/mongos.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongos.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongos.js.map

100755100644
File mode changed.

built/bin/mongosniff.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongosniff.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongosniff.js.map

100755100644
File mode changed.

built/bin/mongostat.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongostat.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongostat.js.map

100755100644
File mode changed.

built/bin/mongotop.d.ts

100755100644
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

built/bin/mongotop.js

100755100644
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/bin/mongotop.js.map

100755100644
File mode changed.

built/mongo-bins.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="node" />
22
import { SpawnOptions, ChildProcess } from 'child_process';
3+
import { IMongoDBDownloadOpts } from './mongod-helper';
34
import { MongoDBPrebuilt } from './mongodb-prebuilt';
45
import { MongoSupervise } from './mongodb-supervise';
56
export declare class MongoBins {
@@ -11,7 +12,7 @@ export declare class MongoBins {
1112
childProcess: ChildProcess;
1213
mongoSupervice: MongoSupervise;
1314
mongoDBPrebuilt: MongoDBPrebuilt;
14-
constructor(command: string, commandArguments?: string[], spawnOptions?: SpawnOptions);
15+
constructor(command: string, commandArguments?: string[], spawnOptions?: SpawnOptions, downloadOptions?: IMongoDBDownloadOpts);
1516
run(): Promise<boolean>;
1617
runCommand(): Promise<boolean>;
1718
getCommand(): Promise<string>;

built/mongo-bins.js

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/mongo-bins.js.map

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

built/mongod-helper.d.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
/// <reference types="node" />
22
import { MongoBins } from './mongo-bins';
3+
export interface IMongoDBDownloadOpts {
4+
platform?: string;
5+
arch?: string;
6+
version?: string;
7+
downloadDir?: string;
8+
http?: any;
9+
}
310
export declare class MongodHelper {
411
mongoBin: MongoBins;
512
debug: any;
613
private resolveLink;
714
private rejectLink;
8-
constructor(commandArguments?: string[]);
15+
constructor(commandArguments?: string[], downloadOptions?: IMongoDBDownloadOpts);
916
run(): Promise<boolean>;
1017
closeHandler(code: number): void;
1118
stderrHandler(message: string | Buffer): void;
@@ -15,4 +22,5 @@ export declare class MongodHelper {
1522
getMongodPermissionDeniedExpression(): RegExp;
1623
getMongodDataDirNotFounddExpression(): RegExp;
1724
getMongodShutdownMessageExpression(): RegExp;
25+
stop(): void;
1826
}

built/mongod-helper.js

+12-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)