summaryrefslogtreecommitdiff
path: root/examples/plain_ruby/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plain_ruby/README.md')
-rw-r--r--examples/plain_ruby/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/plain_ruby/README.md b/examples/plain_ruby/README.md
new file mode 100644
index 0000000..7208317
--- /dev/null
+++ b/examples/plain_ruby/README.md
@@ -0,0 +1,22 @@
+# Example: Plain Ruby Script
+
+Uses RCM directly from a Ruby script — no Rake, no Bundler required.
+
+## Usage
+
+```sh
+# Dry run — show what would change, make no changes
+ruby config.rb --dry
+
+# Verbose output
+ruby config.rb --debug
+
+# Apply configuration
+ruby config.rb
+```
+
+## What it does
+
+- Creates `/tmp/example/hello.txt` with static content (parent directory created automatically)
+- Ensures the line `127.0.0.1 localhost` is present in `/tmp/example/hosts.txt`
+- Creates `/tmp/example/greeting.txt` from an inline ERB template