diff options
author | icebaker <icebaker@proton.me> | 2024-01-09 22:15:08 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2024-01-09 22:15:08 -0300 |
commit | a36604d266cb019311cdf67110596a16986a0fff (patch) | |
tree | a5360d90594a0852ec69b515565141f2096e5a8c | |
parent | 262fd30d28c030cb42b4583c0a6bb394dea12067 (diff) |
migrating to PATH
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | components/storage.rb | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -963,7 +963,7 @@ cd ruby-nano-bots cp docker-compose.example.yml docker-compose.yml ``` -Set your provider credentials and choose your desired directory for the cartridges files: +Set your provider credentials and choose your desired path for the cartridges files: ### Cohere Command Container diff --git a/components/storage.rb b/components/storage.rb index 270cd81..10ea335 100644 --- a/components/storage.rb +++ b/components/storage.rb @@ -37,6 +37,7 @@ module NanoBot def self.build_path_and_ensure_state_file!(key, cartridge, environment: {}) path = [ + Logic::Helpers::Hash.fetch(cartridge, %i[state path]), Logic::Helpers::Hash.fetch(cartridge, %i[state directory]), ENV.fetch('NANO_BOTS_STATE_PATH', nil), ENV.fetch('NANO_BOTS_STATE_DIRECTORY', nil) |