Configure Providers

Configure Hanami providers at `config/providers/[name].rb` using `Hanami.app.register_provider(:name) do [...] end` — define settings in `config/settings.rb` if the service needs configuration, implement lifecycle with `prepare` for requiring gems and `start` for instantiation using `target["settings"]` to access config (never hardcode credentials or use raw ENV), register with a descriptive key via `register("key", instance)`, and verify the provider boots without errors. Covers provider structure, settings integration, and boot lifecycle. Use when setting up a new provider, adding a service, or configuring ROM connections. Trigger words: provider, configure, ROM setup, external service, database connection, dry-system, boot, register component.

igmarin 67eb598 2 files · 5.9 KB Updated

File contents

igmarin/hanakai-yaku/tree/main/skills/providers/configure-providers commit 67eb598cd0

Frequently asked questions

npx skillmds@latest add igmarin/configure-providers