Bobbin.Integration.Nodes (bobbin v0.5.1)

Copy Markdown View Source

Turns a manifest shipped in a package into node modules at compile time, for an integration that is YAML plus some nodes written in Elixir:

defmodule MyIntegrations.Slack do
  use Bobbin.Integration.Nodes, manifest: "../priv/integration.yaml"
end

The path is relative to the file. Each trigger and action becomes a module under the using one, like MyIntegrations.Slack.Slack.SendMessage, and the using module gets manifest/0 and nodes/0.