This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Resolves issues running plugin (#141)
Fixes plugin after conversion to TypeScript
- Loading branch information
Showing
24 changed files
with
261 additions
and
198 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,3 +1,4 @@ | ||
node_modules/ | ||
/lib | ||
*.dll | ||
.env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
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
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
This file was deleted.
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
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,18 +1,21 @@ | ||
import * as Serverless from 'serverless'; | ||
import { retrieveLogs } from './lib/retrieveLogs'; | ||
import AzureProvider from '../../provider/azureProvider'; | ||
|
||
export class AzureLogs { | ||
public hooks: { [eventName: string]: Promise<any> }; | ||
private retrieveLogs: () => Promise<any>; | ||
|
||
constructor(private serverless: Serverless, private options: Serverless.Options) { | ||
Object.assign( | ||
this, | ||
retrieveLogs | ||
); | ||
private provider: AzureProvider; | ||
|
||
constructor(private serverless: Serverless, private options: Serverless.Options) { | ||
this.provider = (this.serverless.getProvider('azure') as any) as AzureProvider; | ||
|
||
this.hooks = { | ||
'logs:logs': this.retrieveLogs.bind(this) | ||
}; | ||
} | ||
|
||
private async retrieveLogs() { | ||
await this.provider.pingHostStatus(this.options.function); | ||
await this.provider.getLogsStream(this.options.function); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.