summaryrefslogtreecommitdiff
path: root/examples/plain_ruby/config.rb
diff options
context:
space:
mode:
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.