blob: 3b486df8a72024e12d2c64ef310a70c0670f6c64 (
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
29
|
# Example: As a Gem
Uses RCM as a Bundler-managed gem, without Rake. This is the simplest way to
use RCM from your own Ruby scripts while keeping gem dependencies explicit.
## Setup
```sh
bundle install
```
## Usage
```sh
# Dry run — show what would change, make no changes
bundle exec ruby config.rb --dry
# Verbose output
bundle exec ruby config.rb --debug
# Apply configuration
bundle exec ruby config.rb
```
## What it does
- Creates `/tmp/example/wg0.conf` from an inline ERB template
Only runs when the current hostname is `earth`.
|