FileSystem distributor support for ninja-bear
Project description
ninja-bear-distributor-fs
This ninja-bear plugin provides the possibility to distribute generated files to other locations on the file system.
distributors: # Specifies which distributor plugins to load.
# -------------------------------------------------------------------------
# Property description for ninja-bear-distributor-fs.
#
# distributor (required): ninja-bear-distributor-fs
# as (required): Specifies how the distributor will be referenced
# at the language level (in this case fs).
# paths (required): Path or list of paths (relative or absolute) to
# copy the configs to.
# create_parents (optional): If true, parent directories will be created if
# they don't exist.
# ignore (optional): If true, the section gets ignored.
# -------------------------------------------------------------------------
- distributor: ninja-bear-distributor-fs
as: fs
paths:
- ../configs/configs-1
- ../configs/configs-2
create_parents: true
languages:
- language: ninja-bear-language-examplescript
distributors: # Specifies which distributor plugins to use for the language.
- fs
properties:
- type: bool
name: myBoolean
value: true
- type: int
name: myInteger
value: 142
- type: float
name: myFloat
value: 322f # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.
- type: float
name: myCombinedFloat
value: ${myInteger} * ${myFloat} # Number and boolean combinations get evaluated during the dump process.
- type: double
name: myDouble
value: 233.9
- type: string
name: myString
value: Hello World
hidden: true # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.
- type: regex
name: myRegex
value: Test Reg(E|e)x
comment: Just another RegEx. # Variables can be described using the comment property.
- type: string
name: mySubstitutedString
value: Sometimes I just want to scream ${myString}! # To use the value of another property, simply use its name with ${}. E.g., ${myString}.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ninja_bear_distributor_fs-0.1.0.tar.gz
.
File metadata
- Download URL: ninja_bear_distributor_fs-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4e1cda20a82f80b017666b49477e04e271a995af8b1eac1c3d37a69e87061d |
|
MD5 | 190d6c1c669e0ea8002ba907cbb9a033 |
|
BLAKE2b-256 | 4a8621a28709fb1bc1a573d11eee57cd9779745ab2a4d5475a4b8360f2f4db08 |
File details
Details for the file ninja_bear_distributor_fs-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ninja_bear_distributor_fs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87916533e56e57b1f11188e31e9272a3e5a0e01e9568ab9f9e09c7ac338774e9 |
|
MD5 | 80c1ab26ae6cfc876739ac69ecd05393 |
|
BLAKE2b-256 | e48e860a3d3f765d084b1c420ff4f5f9f91ff2d32c16b4c20fa0acbe177faf9e |