diff options
author | icebaker <icebaker@proton.me> | 2023-11-18 19:07:10 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-11-18 19:07:10 -0300 |
commit | 8ae78b954350755a47a13133668dba93bac15f37 (patch) | |
tree | 9cdc3bb770d778bd8d00675fdbc1f27a6e27e37c /controllers/instance.rb | |
parent | ab22d1bbe37093912cb7418b3c945153a15f4255 (diff) |
adding support for tools
Diffstat (limited to 'controllers/instance.rb')
-rw-r--r-- | controllers/instance.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/controllers/instance.rb b/controllers/instance.rb index d4e0c1b..259a548 100644 --- a/controllers/instance.rb +++ b/controllers/instance.rb @@ -6,9 +6,9 @@ require_relative '../logic/helpers/hash' require_relative '../components/provider' require_relative '../components/storage' require_relative '../components/stream' -require_relative './interfaces/repl' -require_relative './interfaces/eval' -require_relative './session' +require_relative 'interfaces/repl' +require_relative 'interfaces/eval' +require_relative 'session' module NanoBot module Controllers @@ -83,7 +83,7 @@ module NanoBot raise StandardError, "Cartridge file not found: \"#{path}\"" end - @cartridge = YAML.safe_load(File.read(elected_path), permitted_classes: [Symbol]) + @cartridge = YAML.safe_load_file(elected_path, permitted_classes: [Symbol]) end @safe_cartridge = Marshal.load(Marshal.dump(@cartridge)) |