summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_cli/lib/rabbitmq/cli/core/requires_rabbit_app_running.ex
blob: de3a15c3316ae28b5288ff4d52dd9e9634d76e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## This Source Code Form is subject to the terms of the Mozilla Public
## License, v. 2.0. If a copy of the MPL was not distributed with this
## file, You can obtain one at https://mozilla.org/MPL/2.0/.
##
## Copyright (c) 2007-2021 VMware, Inc. or its affiliates.  All rights reserved.

# Should be used by commands that require rabbit app to be running
# but need no other execution environment validators.
defmodule RabbitMQ.CLI.Core.RequiresRabbitAppRunning do
  defmacro __using__(_) do
    quote do
      def validate_execution_environment(args, opts) do
        RabbitMQ.CLI.Core.Validators.rabbit_is_running(args, opts)
      end
    end
  end
end