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

@ decorators . which ( 'chef-solo' ) def solo ( whyrun = False , logfile = None , ** kwargs ) : if ( logfile is None ) : logfile = _default_logfile ( 'chef-solo' ) args = [ 'chef-solo' , '--no-color' , '--logfile "{0}"' . format ( logfile ) , '--format doc' ] if whyrun : args . append ( '--why-run' ) return _exec_cmd ( * args , ** kwargs )
execute a chef solo run and return a dict with the stderr .