def distrib_release():
 with settings(hide('running', 'stdout')):
  kernel = run('uname -s')
  if (kernel == 'Linux'):
   return run('lsb_release -r --short')
  elif (kernel == 'SunOS'):
   return run('uname -v')

def distrib_release ( ) : with settings ( hide ( 'running' , 'stdout' ) ) : kernel = run ( 'uname -s' ) if ( kernel == 'Linux' ) : return run ( 'lsb_release -r --short' ) elif ( kernel == 'SunOS' ) : return run ( 'uname -v' )
get the release number of the distribution .