Renamed call_func to cmd for consistency; made compat alias

Added WheelClient() documentation on the non-eauth cmd & async funcs.
This commit is contained in:
Seth House 2014-07-02 20:30:30 -06:00
parent 7f147e1212
commit a4cc496bc7
2 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,7 @@ WheelClient
-----------
.. autoclass:: salt.wheel.WheelClient
:members: call_func, cmd_sync, cmd_async
:members: cmd, async, cmd_sync, cmd_async
CloudClient
-----------

View File

@ -45,7 +45,7 @@ class WheelClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
self.opts = opts
self.functions = salt.loader.wheels(opts)
def call_func(self, fun, **kwargs):
def cmd(self, fun, **kwargs):
'''
Execute a wheel function
@ -61,6 +61,8 @@ class WheelClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
'''
return self.low(fun, kwargs)
call_func = cmd # alias for backward-compat
def master_call(self, **kwargs):
'''
Execute a wheel function through the master network interface (eauth).