diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-01 20:26:49 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-01 20:26:49 +0200 |
| commit | 1f5410ae2d117f2904373eedbeb762f7a02b421a (patch) | |
| tree | 3910c4007d9c1f5a9fe1fc0dcebb06f7283b3044 /examples/rake | |
| parent | 92ba0576ebf8aaf770368eba4533d3c4ed4a5e37 (diff) | |
add rcm LoadError fallback to rake and gem examples
Diffstat (limited to 'examples/rake')
| -rw-r--r-- | examples/rake/Rakefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/rake/Rakefile b/examples/rake/Rakefile index 27b7e7a..4392f20 100644 --- a/examples/rake/Rakefile +++ b/examples/rake/Rakefile @@ -7,7 +7,11 @@ # # This example assumes rcm is available via bundler (see Gemfile), # or you can swap the require for: require_relative '../../lib/dsl' -require 'rcm' +begin + require 'rcm' +rescue LoadError + require_relative '../../lib/dsl' +end desc 'Apply system configuration' task :setup do |
