-
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.
Merge pull request #117 from mittwald/feature/add-drupal-grav-nextclo…
…ud-python Add Drupal, Grav, Nextcloud and Python as installable/creatable Apps
- Loading branch information
Showing
6 changed files
with
429 additions
and
2 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
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,33 @@ | ||
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js"; | ||
import React from "react"; | ||
import { | ||
AppInstallationResult, | ||
AppInstaller, | ||
} from "../../../lib/app/Installer.js"; | ||
|
||
export const pythonInstaller = new AppInstaller( | ||
"be57d166-dae9-4480-bae2-da3f3c6f0a2e", | ||
"custom python site", | ||
["document-root", "site-title", "wait"] as const, | ||
); | ||
|
||
export default class InstallPython extends ExecRenderBaseCommand< | ||
typeof InstallPython, | ||
AppInstallationResult | ||
> { | ||
static description = pythonInstaller.description; | ||
static flags = pythonInstaller.flags; | ||
|
||
protected async exec(): Promise<{ appInstallationId: string }> { | ||
return pythonInstaller.exec( | ||
this.apiClient, | ||
this.args, | ||
this.flags, | ||
this.config, | ||
); | ||
} | ||
|
||
protected render(result: AppInstallationResult): React.ReactNode { | ||
return pythonInstaller.render(result, this.flags); | ||
} | ||
} |
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
Oops, something went wrong.