Sha256: 2a54d92f29dc48168c23dab1c5f0e55255e6bd73a93aeecc16110aa87d321459

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 Bytes

Contents

# Demo variable porting

```opts :(document_opts)
dump_inherited_lines: true
execute_in_own_window: false
output_execution_report: false
output_execution_summary: false
pause_after_script_execution: true
```

::: 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.
```

::: This is a Port block that saves current/live environment variable values into the generated script.

```port :[vault]
VAULT
VAULT2
```

::: 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
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdown_exec-2.6.0 examples/port-blocks.md