Skip to content

Commit

Permalink
rename some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Aug 11, 2024
1 parent f1b5762 commit 4d76151
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/staxfile/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { exit, fileExists } from '~/utils'
import path from 'path'
import tmp from 'tmp'
import yaml from 'js-yaml'
import Dockerfile from './dockerfilex'
import Compose from './compose'
import DockerfileCompiler from './dockerfile_compiler'
import ComposeGenerator from './compose_generator'

export default class Compiler {
public staxfile: string
Expand Down Expand Up @@ -45,14 +45,14 @@ export default class Compiler {

private compileDockerfile(): string {
const file = tmp.fileSync({ tmpdir: this.baseDir, postfix: 'dockerfile' })
const dockerfile = new Dockerfile(this.config.defaults.build).compile({ outputFile: file.name})
const dockerfile = new DockerfileCompiler(this.config.defaults.build).compile({ outputFile: file.name})
this.config.defaults.build.dockerfile = file.name
return file.name
}

private compileCompose(): string {
const tmpfile = tmp.fileSync({ tmpdir: this.baseDir, postfix: 'compose' })
const yaml = new Compose(this.config).compile({ outputFile: tmpfile.name })
const yaml = new ComposeGenerator(this.config).compile({ outputFile: tmpfile.name })
return tmpfile.name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface CompileOptions {
outputFile?: string
}

export default class Compose {
export default class ComposeGenerator {
public config: any

constructor(config: any) {
Expand Down
File renamed without changes.

0 comments on commit 4d76151

Please sign in to comment.