feat: rename plugin to application
This commit is contained in:
parent
bd3760d5c7
commit
d33465052f
|
@ -32,72 +32,72 @@ defmodule EmqxReleaseHelper.Applications do
|
||||||
|
|
||||||
application :emqx_authz do
|
application :emqx_authz do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_data_bridge do
|
application :emqx_data_bridge do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_sn do
|
application :emqx_sn do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_authentication do
|
application :emqx_authentication do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_dashboard do
|
application :emqx_dashboard do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_management do
|
application :emqx_management do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_statsd do
|
application :emqx_statsd do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_stomp do
|
application :emqx_stomp do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_bridge_mqtt do
|
application :emqx_bridge_mqtt do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_retainer do
|
application :emqx_retainer do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_telemetry do
|
application :emqx_telemetry do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_coap do
|
application :emqx_coap do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_rule_engine do
|
application :emqx_rule_engine do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_web_hook do
|
application :emqx_web_hook do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_config_helper do
|
application :emqx_config_helper do
|
||||||
|
@ -106,22 +106,22 @@ defmodule EmqxReleaseHelper.Applications do
|
||||||
|
|
||||||
application :emqx_exhook, %{release_type: :cloud} do
|
application :emqx_exhook, %{release_type: :cloud} do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_exproto, %{release_type: :cloud} do
|
application :emqx_exproto, %{release_type: :cloud} do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_prometheus, %{release_type: :cloud} do
|
application :emqx_prometheus, %{release_type: :cloud} do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
end
|
end
|
||||||
|
|
||||||
application :emqx_lwm2m, %{release_type: :cloud} do
|
application :emqx_lwm2m, %{release_type: :cloud} do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
|
|
||||||
overlay do
|
overlay do
|
||||||
copy "lwm2m_xml", "etc/lwm2m_xml"
|
copy "lwm2m_xml", "etc/lwm2m_xml"
|
||||||
|
@ -130,7 +130,7 @@ defmodule EmqxReleaseHelper.Applications do
|
||||||
|
|
||||||
application :emqx_psk_file, %{release_type: :cloud} do
|
application :emqx_psk_file, %{release_type: :cloud} do
|
||||||
start_type :permanent
|
start_type :permanent
|
||||||
overlay :plugin
|
overlay :application
|
||||||
|
|
||||||
overlay do
|
overlay do
|
||||||
copy "etc/psk.txt", "etc/psk.txt"
|
copy "etc/psk.txt", "etc/psk.txt"
|
||||||
|
|
|
@ -44,11 +44,11 @@ defmodule EmqxReleaseHelper.DSL.Application do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defmacro overlay(:plugin) do
|
defmacro overlay(:application) do
|
||||||
block =
|
block =
|
||||||
Macro.escape(
|
Macro.escape(
|
||||||
quote do
|
quote do
|
||||||
&plugin_overlay/1
|
&application_overlay/1
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ defmodule EmqxReleaseHelper.DSL.Application do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def plugin_overlay(%{app_source_path: app_source_path, release_path: release_path} = config) do
|
def application_overlay(%{app_source_path: app_source_path, release_path: release_path} = config) do
|
||||||
"#{app_source_path}/etc"
|
"#{app_source_path}/etc"
|
||||||
|> File.ls()
|
|> File.ls()
|
||||||
|> case do
|
|> case do
|
||||||
|
|
Loading…
Reference in New Issue