summaryrefslogtreecommitdiff
path: root/examples/gem/README.md
blob: c05b844d3551ca9149484460a908c27fb363cc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Example: As a Gem

Uses RCM as a Bundler-managed gem inside a Rake project.

## Setup

```sh
bundle install
```

## Usage

```sh
# Dry run — show what would change, make no changes
bundle exec rake setup -- --dry

# Verbose output
bundle exec rake setup -- --debug

# Apply configuration
bundle exec rake setup
```

## What it does

- Creates `/tmp/example/wg0.conf` from an inline ERB template

The task only runs when the current hostname is `earth`.