Daniil Fedotov
9baa5c1ebe
Load commands from load path. Specify scope in application config by file name
2016-06-23 10:50:01 +01:00
Daniil Fedotov
1f3bc3e6d7
Use scopes and separate Mix projects to generate escripts
2016-06-23 10:50:01 +01:00
Daniil Fedotov
38d573ef94
Skip existing channels in list_channels test
2016-06-23 10:49:47 +01:00
Michael Klishin
78ae2585a3
Inline
2016-06-15 00:22:42 +03:00
Michael Klishin
bc5ff3bf26
Merge pull request #79 from rabbitmq/rabbitmq-cli-69
...
Purge queue command
2016-06-14 23:07:55 +03:00
Michael Klishin
2d68d42241
Assert that messages were purged; don't assume 0 messages were deleted
2016-06-14 23:04:27 +03:00
Andrew Bruce
ef26486f3e
Merge pull request #80 from rabbitmq/clean_up_duplicate_parse_nodes
...
Remove a few Helpers.parse_node calls are no longer necessary
2016-06-14 14:01:17 +01:00
Michael Klishin
d77eb83c5f
A few Helpers.parse_node calls are no longer necessary
...
[Finish ##121221959]
2016-06-14 14:21:16 +03:00
Andrew Bruce
ec3a191515
Purge queue command
...
This initial version makes two RPC calls:
1. Gets the amqqueue resource
2. Makes the purge request using that resource
Issue #69
2016-06-14 10:31:47 +01:00
Michael Klishin
39b3de4d1e
Namespace commands, fixes #74
...
Note that the top level module is not namespaced. It's
not clear to me if it should be or will be end up using
and (Elixir/Mix) umbrella project anyway.
2016-06-10 02:54:22 +03:00
Michael Klishin
506c9cc43f
Normalize node names before passing them to Command.run/2
...
Fixes #76 .
2016-06-10 00:56:44 +03:00
Michael Klishin
3cfacc6bc2
Merge pull request #77 from rabbitmq/fix-typo-in-node-name
...
Fix typo in node name
2016-06-09 17:55:19 +03:00
Andrew Bruce
0c94b3d87a
Fix typo in node name
2016-06-09 15:49:57 +01:00
Michael Klishin
92773a97a5
Merge pull request #75 from rabbitmq/rabbitmq-cli-70
...
set_cluster_name
2016-06-09 15:30:29 +03:00
Michael Klishin
c7af6e7398
Normalize node name
2016-06-09 15:30:01 +03:00
Michael Klishin
39300fa5ca
Restore original cluster name
2016-06-09 15:29:51 +03:00
Michael Klishin
e95a085b3e
Merge branch 'master' into rabbitmq-cli-70
2016-06-09 15:19:46 +03:00
Michael Klishin
fe2eb2d31b
Normalize node names in sync_queue and cancel_sync_queue
2016-06-09 15:19:29 +03:00
Karl Nilsson
084585ae3d
Merge pull request #72 from rabbitmq/rabbitmq-cli-67
...
Implement sync_queue and cancel_sync_queue commands
2016-06-09 13:11:16 +01:00
Andrew Bruce
7730539bc1
set_cluster_name
...
- Shows up in help
- Validates args a bit
- Has no defaults
Issue #70
[#116551629 ]
2016-06-09 11:29:27 +01:00
Michael Klishin
d59e0fa444
Merge branch 'master' into rabbitmq-cli-67
2016-06-09 04:13:48 +03:00
Michael Klishin
d27469c665
RabbitMQ.CLI.RabbitMQCtl => RabbitMQ.CLI.Ctl, references #74
2016-06-09 04:08:21 +03:00
Michael Klishin
4e31f4c627
More renaming, references #74
2016-06-09 04:00:43 +03:00
Michael Klishin
509179402a
Missing file for the previous commit
2016-06-09 03:35:11 +03:00
Michael Klishin
8fcad8338e
Namespace more modules under RabbitMQ.CLI, part of #74
2016-06-09 03:34:56 +03:00
Michael Klishin
ddf191dea9
Adapt to master
2016-06-09 02:26:52 +03:00
Michael Klishin
89a3cd954c
Merge branch 'master' into rabbitmq-cli-67
2016-06-09 02:23:53 +03:00
Michael Klishin
0c35f5a8cd
Move start_distribution into RabbitMQ.CLI.Distribution
2016-06-09 02:23:10 +03:00
Michael Klishin
e970a1fb7e
Merge branch 'rabbitmq-cli-71'
2016-06-09 02:07:10 +03:00
Michael Klishin
3a2b277d4f
Squash a warning
2016-06-09 00:42:51 +03:00
Daniil Fedotov
091105e5b0
0 arity start_distribution
2016-06-08 17:04:08 +01:00
Daniil Fedotov
9b703b2896
Dynamically select distribution node
2016-06-08 15:19:37 +01:00
Michael Klishin
d834e8007b
Merge branch 'master' into rabbitmq-cli-67
2016-06-08 16:53:02 +03:00
Michael Klishin
2de1460e65
Missing license header
2016-06-08 03:34:49 +03:00
Michael Klishin
34961e7fed
Implement sync_queue and cancel_sync_queue commands
...
Happy path tests need a multi-node testing framework.
2016-06-08 03:32:41 +03:00
Michael Klishin
9d2af8c352
Introduce RabbitCommon.Records
...
While I ended up not using this, this allows for easier manipulation
of amqqueue records from IEx:
``` elixir
require RabbitCommon.Records
Keyword.get(RabbitCommon.Records.amqqueue(amq_queue_record), :pid)
```
It also demonstrates how records can be organized in this (supposedly) multi-tool
repository.
2016-06-08 03:08:06 +03:00
Michael Klishin
204e982a94
Make usage/0 return a string
2016-06-08 01:48:49 +03:00
Michael Klishin
9a2c6ebbc0
Merge branch 'implement-join_cluster'
2016-06-07 01:19:32 +03:00
Michael Klishin
e41cba0cb5
Clarify what 'target node' is
2016-06-07 01:19:21 +03:00
Jean-Sébastien Pédron
1b1534f86b
Implement the `join_cluster` command
...
Compared to the Erlang-based rabbitmqctl's command, this one accepts
`--disc` to specify the node type. In the implementation, it does
nothing because that's the default value already. It is only to improve
consistency, because there is a `--ram` flag.
The testsuite for this command is incomplete in this commit. When a
testcase will be able to start and stop multiple nodes, the testsuite
will need to be completed.
[#116551629 ]
2016-06-06 16:06:52 +02:00
Jean-Sébastien Pédron
9349c9bf07
Improve "Please stop the node with rabbitmqctl stop_app" message
...
... with "Please stop RabbitMQ with rabbitmqctl stop_app".
The previous message didn't make sense: `stop_app` only stop the
RabbitMQ application, not the entire node (which we don't want to do in
the context of this message).
2016-06-06 16:00:50 +02:00
Jean-Sébastien Pédron
f07cb00c20
.gitignore: Ignore Vim swap files
2016-06-06 12:09:59 +02:00
Jean-Sébastien Pédron
4e185689f8
Mix: Make sure we use GNU Make to build RabbitMQ dependencies
2016-06-06 12:06:46 +02:00
Michael Klishin
8bb1588383
Merge branch 'rabbitmq-cli-63'
2016-06-02 23:40:19 +03:00
kjnilsson
e5c35c2939
merge
2016-06-02 16:09:56 +01:00
kjnilsson
43ae69a06d
Implement wait command
2016-06-02 16:03:54 +01:00
Michael Klishin
d2abd74294
Merge pull request #62 from rabbitmq/rabbitmq-cli-61
...
Implement rotate_logs command
2016-06-02 17:08:22 +03:00
Michael Klishin
8c6d1a80ce
Merge branch 'master' into rabbitmq-cli-61
2016-06-02 17:03:03 +03:00
Michael Klishin
4ddf81e29b
Merge pull request #60 from rabbitmq/rabbitmq-cli-59
...
Implement stop command
2016-06-02 17:02:34 +03:00
Michael Klishin
45ffac0d7b
Cosmetics
2016-06-02 17:02:14 +03:00