summaryrefslogtreecommitdiff
path: root/examples/plain_ruby/config.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-01 20:23:36 +0200
committerPaul Buetow <paul@buetow.org>2026-03-01 20:23:36 +0200
commite17fbbfb30da394d6abbb91da4a963ff8913ad47 (patch)
treea25fcbf4e9f6e5c4d1a1b0a763a32f05d9758bcd /examples/plain_ruby/config.rb
parent990c817571844462906b4ac7a58e64640be660e2 (diff)
fix dry-run crash when parent directory does not exist yet, add rake and rcm fallback to examples
Diffstat (limited to 'examples/plain_ruby/config.rb')
-rwxr-xr-xexamples/plain_ruby/config.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/plain_ruby/config.rb b/examples/plain_ruby/config.rb
index f49bd01..c730c05 100755
--- a/examples/plain_ruby/config.rb
+++ b/examples/plain_ruby/config.rb
@@ -8,7 +8,11 @@
#
# Requires rcm to be installed as a gem, or adjust the path below:
# require_relative '../../lib/dsl'
-require 'rcm'
+begin
+ require 'rcm'
+rescue LoadError
+ require_relative '../../lib/dsl'
+end
configure do
# Write a simple text file with static content.