Skip to content

Commit 5f3baf3

Browse files
committed
CLI: Rename disk space monitoring commands
1 parent eaf1f0e commit 5f3baf3

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/enable_free_disk_space_monitoring_command.ex renamed to deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/activate_free_disk_space_monitoring_command.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55
## Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Ctl.Commands.EnableFreeDiskSpaceMonitoringCommand do
7+
defmodule RabbitMQ.CLI.Ctl.Commands.ActivateFreeDiskSpaceMonitoringCommand do
88
alias RabbitMQ.CLI.Core.DocGuide
99

1010
@behaviour RabbitMQ.CLI.CommandBehaviour
@@ -43,7 +43,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EnableFreeDiskSpaceMonitoringCommand do
4343

4444
def formatter(), do: RabbitMQ.CLI.Formatters.String
4545

46-
def usage, do: "enable_free_disk_space_monitoring"
46+
def usage, do: "activate_free_disk_space_monitoring"
4747

4848
def usage_doc_guides() do
4949
[
@@ -54,8 +54,8 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EnableFreeDiskSpaceMonitoringCommand do
5454

5555
def help_section(), do: :observability_and_health_checks
5656

57-
def description(), do: "[Re-]enables free disk space monitoring on a node"
57+
def description(), do: "[Re-]activates free disk space monitoring on a node"
5858

5959
def banner(_, %{node: node_name}),
60-
do: "[Re-]enabling free disk space monitoring on node #{node_name}..."
60+
do: "[Re-]activating free disk space monitoring on node #{node_name}..."
6161
end

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/disable_free_disk_space_monitoring_command.ex renamed to deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/deactivate_free_disk_space_monitoring_command.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55
## Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Ctl.Commands.DisableFreeDiskSpaceMonitoringCommand do
7+
defmodule RabbitMQ.CLI.Ctl.Commands.DeactivateFreeDiskSpaceMonitoringCommand do
88
alias RabbitMQ.CLI.Core.DocGuide
99

1010
@behaviour RabbitMQ.CLI.CommandBehaviour
@@ -43,7 +43,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DisableFreeDiskSpaceMonitoringCommand do
4343

4444
def formatter(), do: RabbitMQ.CLI.Formatters.String
4545

46-
def usage, do: "disable_free_disk_space_monitoring"
46+
def usage, do: "deactivate_free_disk_space_monitoring"
4747

4848
def usage_doc_guides() do
4949
[
@@ -54,8 +54,8 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DisableFreeDiskSpaceMonitoringCommand do
5454

5555
def help_section(), do: :observability_and_health_checks
5656

57-
def description(), do: "Disables free disk space monitoring on a node"
57+
def description(), do: "Deactivates free disk space monitoring on a node"
5858

5959
def banner(_, %{node: node_name}),
60-
do: "Disabling free disk space monitoring on node #{node_name}..."
60+
do: "Deactivating free disk space monitoring on node #{node_name}..."
6161
end

deps/rabbitmq_cli/test/ctl/enable_disk_free_space_monitoring_command_test.exs renamed to deps/rabbitmq_cli/test/ctl/activate_disk_free_space_monitoring_command_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
##
55
## Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
66

7-
defmodule EnableDiskFreeSpaceMonitoringCommandTest do
7+
defmodule ActivateDiskFreeSpaceMonitoringCommandTest do
88
use ExUnit.Case, async: false
99
import TestHelper
1010

11-
@command RabbitMQ.CLI.Ctl.Commands.EnableFreeDiskSpaceMonitoringCommand
11+
@command RabbitMQ.CLI.Ctl.Commands.ActivateFreeDiskSpaceMonitoringCommand
1212

1313
setup_all do
1414
RabbitMQ.CLI.Core.Distribution.start()
@@ -35,6 +35,6 @@ defmodule EnableDiskFreeSpaceMonitoringCommandTest do
3535

3636
test "banner", context do
3737
assert @command.banner([], context[:opts]) =~
38-
~r/\[Re\-\]enabling free disk space monitoring on node/
38+
~r/\[Re\-\]activating free disk space monitoring on node/
3939
end
4040
end

deps/rabbitmq_cli/test/ctl/disable_disk_free_space_monitoring_command_test.exs renamed to deps/rabbitmq_cli/test/ctl/deactivate_disk_free_space_monitoring_command_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
##
55
## Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
66

7-
defmodule DisableDiskFreeSpaceMonitoringCommandTest do
7+
defmodule DeactivateDiskFreeSpaceMonitoringCommandTest do
88
use ExUnit.Case, async: false
99
import TestHelper
1010

11-
@command RabbitMQ.CLI.Ctl.Commands.DisableFreeDiskSpaceMonitoringCommand
11+
@command RabbitMQ.CLI.Ctl.Commands.DeactivateFreeDiskSpaceMonitoringCommand
1212

1313
setup_all do
1414
RabbitMQ.CLI.Core.Distribution.start()
@@ -34,6 +34,6 @@ defmodule DisableDiskFreeSpaceMonitoringCommandTest do
3434
end
3535

3636
test "banner", context do
37-
assert @command.banner([], context[:opts]) =~ ~r/Disabling free disk space monitoring on node/
37+
assert @command.banner([], context[:opts]) =~ ~r/Deactivating free disk space monitoring on node/
3838
end
3939
end

0 commit comments

Comments
 (0)