Skip to content

Commit

Permalink
Fix copy and paste errors
Browse files Browse the repository at this point in the history
  • Loading branch information
niristius committed Nov 13, 2023
1 parent e17c475 commit 97cd2db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/commands/app/create/python.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import {
AppInstaller,
} from "../../../lib/app/Installer.js";

export const staticInstaller = new AppInstaller(
export const pythonInstaller = new AppInstaller(
"be57d166-dae9-4480-bae2-da3f3c6f0a2e",
"custom python site",
["document-root", "site-title", "wait"] as const,
);

export default class InstallNode extends ExecRenderBaseCommand<
typeof InstallNode,
export default class InstallPython extends ExecRenderBaseCommand<
typeof InstallPython,
AppInstallationResult
> {
static description = staticInstaller.description;
static flags = staticInstaller.flags;
static description = pythonInstaller.description;
static flags = pythonInstaller.flags;

protected async exec(): Promise<{ appInstallationId: string }> {
return staticInstaller.exec(
return pythonInstaller.exec(
this.apiClient,
this.args,
this.flags,
Expand All @@ -28,6 +28,6 @@ export default class InstallNode extends ExecRenderBaseCommand<
}

protected render(result: AppInstallationResult): React.ReactNode {
return staticInstaller.render(result, this.flags);
return pythonInstaller.render(result, this.flags);
}
}
4 changes: 2 additions & 2 deletions src/commands/app/create/static.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const staticInstaller = new AppInstaller(
["document-root", "site-title", "wait"] as const,
);

export default class InstallNode extends ExecRenderBaseCommand<
typeof InstallNode,
export default class InstallStatic extends ExecRenderBaseCommand<
typeof InstallStatic,
AppInstallationResult
> {
static description = staticInstaller.description;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/app/install/drupal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const installer = new AppInstaller(
] as const,
);

export default class InstallShopware6 extends ExecRenderBaseCommand<
typeof InstallShopware6,
export default class InstallDrupal extends ExecRenderBaseCommand<
typeof InstallDrupal,
AppInstallationResult
> {
static description = installer.description;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/app/install/nextcloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const installer = new AppInstaller(
] as const,
);

export default class InstallShopware6 extends ExecRenderBaseCommand<
typeof InstallShopware6,
export default class InstallNextcloud extends ExecRenderBaseCommand<
typeof InstallNextcloud,
AppInstallationResult
> {
static description = installer.description;
Expand Down

0 comments on commit 97cd2db

Please sign in to comment.