-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad340d8
commit d450101
Showing
9 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
declare function deploy(): Promise<void>; | ||
export { deploy }; | ||
export {}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Inputs, ConnectionOptions } from '../types'; | ||
export declare class ConfigManager { | ||
constructor(); | ||
getInputs(): Inputs; | ||
getConnectionOptions(): ConnectionOptions; | ||
getTarget(): string; | ||
getSha(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ConfigManager } from './ConfigManager'; | ||
export declare class DeploymentService { | ||
private config; | ||
private paths; | ||
private deployDate; | ||
constructor(config: ConfigManager); | ||
deploy(): Promise<void>; | ||
private checkSponsorship; | ||
private handleSponsorshipError; | ||
private prepareDeployment; | ||
private checkAndPrepareFolders; | ||
private cloneAndPrepareRepository; | ||
private syncEnvironmentFile; | ||
private linkStorage; | ||
private runOptionalScript; | ||
private activateRelease; | ||
private getPaths; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface Inputs { | ||
target: string; | ||
sha: string; | ||
deploy_branch: string; | ||
envFile?: string; | ||
commandScriptBeforeCheckFolders?: string; | ||
commandScriptAfterCheckFolders?: string; | ||
commandScriptBeforeDownload?: string; | ||
commandScriptAfterDownload?: string; | ||
commandScriptBeforeActivate?: string; | ||
commandScriptAfterActivate?: string; | ||
githubRepoOwner: string; | ||
githubRepo: string; | ||
} | ||
export interface Paths { | ||
target: string; | ||
sha: string; | ||
releasePath: string; | ||
activeReleasePath: string; | ||
} | ||
export interface ConnectionOptions { | ||
host: string; | ||
username: string; | ||
port?: number | 22; | ||
password?: string; | ||
privateKey?: string; | ||
passphrase?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { ConnectionOptions, Inputs } from '../types'; | ||
export declare function log(message: string): void; | ||
export declare function logInputs(inputs: Inputs, connectionOptions: ConnectionOptions): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ConnectionOptions, Paths } from '../types'; | ||
export declare const sshOperations: { | ||
connect({ host, username, port, password, privateKey, passphrase }: ConnectionOptions): Promise<void>; | ||
execute(command: string, paths: Paths, showCommandLog?: boolean): Promise<void>; | ||
dispose(): void; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { ConnectionOptions, Inputs } from '../types'; | ||
export declare function validateConfig(inputs: Inputs): void; | ||
export declare function validateConnectionOptions(connectionOptions: ConnectionOptions): void; |