summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2024-01-09 22:15:08 -0300
committericebaker <icebaker@proton.me>2024-01-09 22:15:08 -0300
commita36604d266cb019311cdf67110596a16986a0fff (patch)
treea5360d90594a0852ec69b515565141f2096e5a8c
parent262fd30d28c030cb42b4583c0a6bb394dea12067 (diff)
migrating to PATH
-rw-r--r--README.md2
-rw-r--r--components/storage.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index e1e86d7..61a35b7 100644
--- a/README.md
+++ b/README.md
@@ -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)