@decorators.which('chef-client')
def client(whyrun=False, localmode=False, logfile=None, **kwargs):
 if (logfile is None):
  logfile = _default_logfile('chef-client')
 args = ['chef-client', '--no-color', '--once', '--logfile "{0}"'.format(logfile), '--format doc']
 if whyrun:
  args.append('--why-run')
 if localmode:
  args.append('--local-mode')
 return _exec_cmd(*args, **kwargs)

@ decorators . which ( 'chef-client' ) def client ( whyrun = False , localmode = False , logfile = None , ** kwargs ) : if ( logfile is None ) : logfile = _default_logfile ( 'chef-client' ) args = [ 'chef-client' , '--no-color' , '--once' , '--logfile "{0}"' . format ( logfile ) , '--format doc' ] if whyrun : args . append ( '--why-run' ) if localmode : args . append ( '--local-mode' ) return _exec_cmd ( * args , ** kwargs )
create a low-level service client by name using the default session .