summaryrefslogtreecommitdiff
path: root/src/rabbit_control.erl
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-05-09 10:04:47 +0100
committerTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-05-09 10:04:47 +0100
commitf434b0a6cd655034fa87e2400359ee4bb8d052fe (patch)
tree913de8d2df1598f80a21d74767f98ea46319505b /src/rabbit_control.erl
parent519a16ec69f5c1a6f52f336a0a716971df144a25 (diff)
parent83497bbd0c37ddef8b07a1c8f82311ea9264ce61 (diff)
downloadrabbitmq-server-f434b0a6cd655034fa87e2400359ee4bb8d052fe.tar.gz
merge default into bug20589
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r--src/rabbit_control.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index d0fb8da4..a5bc4a72 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -38,6 +38,19 @@
-define(RPC_TIMEOUT, 30000).
+%%----------------------------------------------------------------------------
+
+-ifdef(use_specs).
+
+-spec(start/0 :: () -> no_return()).
+-spec(stop/0 :: () -> 'ok').
+-spec(action/4 :: (atom(), erlang_node(), [string()],
+ fun ((string(), [any()]) -> 'ok')) -> 'ok').
+
+-endif.
+
+%%----------------------------------------------------------------------------
+
start() ->
FullCommand = init:get_plain_arguments(),
#params{quiet = Quiet, node = Node, command = Command, args = Args} =