# Ruby workspace examples

Source: https://libtmux.org/en/ruby/v0.1.0.alpha.2/workspace/examples/

> A bounded creation-only workspace for libtmux-workspace.

**Workspace Manager concept example** Maintained as a working example of core library usage and deployment. Example APIs, tools and configuration may change without a compatibility or product support commitment.

Save this as `workspace.yaml`:

```yaml
session_name: work
environment:
  PROJECT_MODE: development
windows:
  - window_name: editor
    window_index: 1
    layout: tiled
    panes:
      - shell_command: printf 'editor ready\n'
      - {}
```

Run `libtmux-workspace validate workspace.yaml`, inspect
`libtmux-workspace plan --json workspace.yaml`, then pass an owned socket to
[`load`](<https://libtmux.org/en/ruby/v0.1.0.alpha.2/workspace/reference/libtmux-workspace-load/>). Relative directories resolve against the configuration file.

The [source-owned workspace guide](https://libtmux.org/en/ruby/v0.1.0.alpha.2/workspace/source-guide/) links the installed-package
example that checks inert planning, apply, and guarded compensation.
