Sha256: dc8d687326c6a7ad0d938621ffb90b423549f83e7e2ce47e43d4c76a42f048b1

Contents?: true

Size: 634 Bytes

Versions: 31

Compression:

Stored size: 634 Bytes

Contents

# Demo variable porting

::: This block requires the Port block and displays the value.
::: The Port block contributes the variable VAULT to the generated script.

```bash :show +(vault)
: ${VAULT:=This variable has not been set.}
source bin/colorize_env_vars.sh
colorize_env_vars '' VAULT
```

::: Set the VAULT value in memory.
::: Call this block prior to `show` to demonstrate in-memory value being written to script.

```vars :set
VAULT: This variable was set by the "set" block.
```

::: There is an invisible Port block that saves current/live environment variable values into the generated script.

```port :(vault)
VAULT
```

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
markdown_exec-2.1.0 examples/port.md
markdown_exec-2.0.8.4 examples/port.md
markdown_exec-2.0.8.3 examples/port.md
markdown_exec-2.0.8.2 examples/port.md
markdown_exec-2.0.8.1 examples/port.md
markdown_exec-2.0.8 examples/port.md
markdown_exec-2.0.7 examples/port.md
markdown_exec-2.0.6 examples/port.md
markdown_exec-2.0.5 examples/port.md
markdown_exec-2.0.4 examples/port.md
markdown_exec-2.0.3.2 examples/port.md
markdown_exec-2.0.3.1 examples/port.md
markdown_exec-2.0.3 examples/port.md
markdown_exec-2.0.2 examples/port.md
markdown_exec-2.0.1 examples/port.md
markdown_exec-2.0.0 examples/port.md
markdown_exec-1.8.9 examples/port.md
markdown_exec-1.8.8 examples/port.md
markdown_exec-1.8.7 examples/port.md
markdown_exec-1.8.6 examples/port.md