معرفی شرکت ها


cdktf-local-exec-0.2.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A simple construct that executes a command locally. This is useful to run build steps within your CDKTF Program or to run a post action after a resource is created.
ویژگی مقدار
سیستم عامل -
نام فایل cdktf-local-exec-0.2.4
نام cdktf-local-exec
نسخه کتابخانه 0.2.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Daniel Schmidt<danielmschmidt92@gmail.com>
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/DanielMSchmidt/cdktf-local-exec.git
آدرس اینترنتی https://pypi.org/project/cdktf-local-exec/
مجوز Apache-2.0
# CDKTF Local Exec Construct A simple construct that executes a command locally. This is useful to run build steps within your CDKTF Program or to run a post action after a resource is created. The construct uses the null provider to achieve this so it can be trusted to only run after all dependencies are met. ## Usage ```python import { Provider, LocalExec } from "cdktf-local-exec"; // LocalExec extends from the null provider, // so if you already have the provider initialized you can skip this step new Provider(this, "local-exec"); const frontend = new LocalExec(this, "frontend-build", { // Will copy this into an asset directory cwd: "/path/to/project/frontend", command: "npm install && npm build", }); const pathToUpload = `${frontend.path}/dist`; new LocalExec(this, "frontend-upload", { cwd: pathToUpload, command: `aws s3 cp --recursive ${pathToUpload} s3://${bucket.name}/frontend`, }); new LocalExec(this, "backend-build", { cwd: "/path/to/project/backend", copyBeforeRun: false, // can not run remotely since the runner has no docker access command: "docker build -t foo . && docker push foo", }); ``` ### Options * `cwd`: The working directory to run the command in. It will be copied before execution to ensure the asset can be used in a remote execution environment. * `command`: The command to execute. * `copyBeforeRun`: If true, the command will copy the `cwd` directory into a tmp dir and run there. If false, the command will be executed in the `cwd` directory.


نیازمندی

مقدار نام
>=5.0.0 cdktf-cdktf-provider-null
>=0.15.0 cdktf
<11.0.0,>=10.0.107 constructs
<2.0.0,>=1.73.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl cdktf-local-exec-0.2.4:

    pip install cdktf-local-exec-0.2.4.whl


نصب پکیج tar.gz cdktf-local-exec-0.2.4:

    pip install cdktf-local-exec-0.2.4.tar.gz