diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-06 22:33:07 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-06 22:33:07 +0200 |
| commit | bfdcad7efca071374de0be3124dcc92deeab681e (patch) | |
| tree | 6215f6fcf5287f69840d06ad8c009dab0945ef6d | |
| parent | 4a3629e42cb3e1fbca4356cf789a8e79043cdc51 (diff) | |
auto require
| -rw-r--r-- | Rakefile | 2 | ||||
| -rw-r--r-- | lib/autorequire/config.rb (renamed from rcm/config.rb) | 0 | ||||
| -rw-r--r-- | lib/autorequire/file.rb (renamed from rcm/file.rb) | 0 | ||||
| -rw-r--r-- | lib/autorequire/only_when.rb (renamed from rcm/only_when.rb) | 0 | ||||
| -rw-r--r-- | lib/autorequire/options.rb (renamed from rcm/options.rb) | 0 | ||||
| -rw-r--r-- | lib/rcm.rb (renamed from rcm/rcm.rb) | 6 |
6 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -require_relative 'rcm/rcm' +require_relative 'lib/rcm' desc 'Set up wireguard mesh' task :wireguard do diff --git a/rcm/config.rb b/lib/autorequire/config.rb index b9dc5ac..b9dc5ac 100644 --- a/rcm/config.rb +++ b/lib/autorequire/config.rb diff --git a/rcm/file.rb b/lib/autorequire/file.rb index 2a25a07..2a25a07 100644 --- a/rcm/file.rb +++ b/lib/autorequire/file.rb diff --git a/rcm/only_when.rb b/lib/autorequire/only_when.rb index 2700bee..2700bee 100644 --- a/rcm/only_when.rb +++ b/lib/autorequire/only_when.rb diff --git a/rcm/options.rb b/lib/autorequire/options.rb index de54888..de54888 100644 --- a/rcm/options.rb +++ b/lib/autorequire/options.rb @@ -1,10 +1,8 @@ -require_relative 'config' -require_relative 'options' -require_relative 'only_when' -require_relative 'file' +Dir["#{Dir.pwd}/lib/autorequire/*.rb"].each { |m| require m } # Ruby Configiration Management system module RCM + # Here all starts class RCM include Config |
