Skip to content

Commit

Permalink
Fixed issue with intermittent installs (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Chartier authored Dec 10, 2020
1 parent 5a9a934 commit 9dcd573
Show file tree
Hide file tree
Showing 6 changed files with 272 additions and 243 deletions.
14 changes: 4 additions & 10 deletions packages/appengine/src/appObject.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LabelsMetadata } from "./parsing"
import * as fs from 'fs'
//import * as fs from 'fs'
import createDebug from 'debug'
const debug = createDebug('@appengine:timing')

Expand All @@ -15,10 +15,9 @@ export interface TimingReporter {
}

export class AppEngineState {
timing: Array<AppProvisionerTimer>
timing: AppProvisionerTimer[]
labels: LabelsMetadata
args: any
payload: any
parsed: boolean
platform: string
timestamp: Date
Expand Down Expand Up @@ -55,7 +54,7 @@ export class AppEngineState {

}

constructor(labels: LabelsMetadata, args?: any, payload?: any) {
constructor(labels: LabelsMetadata, args?: any) {
this.timing = new Array<AppProvisionerTimer>()
this.labels = labels
this.parsed = false
Expand All @@ -70,11 +69,6 @@ export class AppEngineState {
this.args = {}
else
this.args = args

if (payload === undefined)
this.payload = {}
else
this.payload = payload
}
}
export class AppProvisionerTimer {
Expand Down Expand Up @@ -195,7 +189,7 @@ export class Helper {
if (!file) file = 'debug.json'
file = `${__dirname}/${file}`
if(!file.endsWith('.json')) file = `${file}.json`
fs.writeFileSync(file, JSON.stringify(json, null, 2))
//fs.writeFileSync(file, JSON.stringify(json, null, 2))
debug(file, json)
return file
}
Expand Down
Loading

0 comments on commit 9dcd573

Please sign in to comment.