some updates
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -5,3 +5,4 @@ docs/ | ||||
| ts/typings/ | ||||
| ts/*.js | ||||
| ts/*.js.map | ||||
| test/temp/ | ||||
							
								
								
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| FROM hosttoday/ht-docker-node:npmts | ||||
| COPY ./ /node-app | ||||
| WORKDIR /node-app | ||||
| RUN npm install | ||||
| RUN npmts | ||||
							
								
								
									
										2
									
								
								dist/smartssh.classes.sshkey.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/smartssh.classes.sshkey.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -18,5 +18,5 @@ export declare class SshKey { | ||||
|     authorized: boolean; | ||||
|     type: any; | ||||
|     read(filePathArg: any): void; | ||||
|     store(dirPathArg?: string): void; | ||||
|     store(dirPathArg: string): void; | ||||
| } | ||||
|   | ||||
							
								
								
									
										2
									
								
								dist/smartssh.classes.sshkey.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/smartssh.classes.sshkey.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,6 +1,7 @@ | ||||
| import "typings-test" | ||||
| import "should"; | ||||
| import smartssh = require("../dist/index"); | ||||
| import path = require("path"); | ||||
| describe("smartssh",function(){ | ||||
|     let testSshInstance:smartssh.SshInstance; | ||||
|     let testSshKey:smartssh.SshKey; | ||||
| @@ -24,6 +25,9 @@ describe("smartssh",function(){ | ||||
|         }); | ||||
|         it(".publicKeyBase64 should be public key base 64 encoded",function(){ | ||||
|             testSshKey.pubKeyBase64; | ||||
|         }); | ||||
|         it(".store() should store the file to disk",function(){ | ||||
|             testSshKey.store(path.join(process.cwd(),"test/temp")); | ||||
|         }) | ||||
|     }); | ||||
|     describe(".SshInstance",function(){ | ||||
|   | ||||
| @@ -77,7 +77,7 @@ export class SshKey { | ||||
|     read(filePathArg){ | ||||
|          | ||||
|     } | ||||
|     store(dirPathArg?:string){ | ||||
|     store(dirPathArg:string){ | ||||
|         plugins.fs.ensureDirSync(dirPathArg); | ||||
|         let fileNameBase =  this.host; | ||||
|         if(this._privKey){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user