Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
end_of_line = lf
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
13 changes: 13 additions & 0 deletions lib/vapor/planner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ defmodule Vapor.Planner do
end
end

defmacro config(name, providers) when is_list(providers) do
quote do
@config_plan unquote(name)

defp __vapor_config__(unquote(name)) do
%Group{
name: unquote(name),
providers: unquote(providers)
}
end
end
end

defmacro config(name, provider) do
quote do
@config_plan unquote(name)
Expand Down