@salt.utils.decorators.which('gunzip')
def gunzip(gzipfile, template=None, runas=None, options=None):
 cmd = ['gunzip']
 if options:
  cmd.append(options)
 cmd.append('{0}'.format(gzipfile))
 return __salt__['cmd.run'](cmd, template=template, runas=runas, python_shell=False).splitlines()

@ salt . utils . decorators . which ( 'gunzip' ) def gunzip ( gzipfile , template = None , runas = None , options = None ) : cmd = [ 'gunzip' ] if options : cmd . append ( options ) cmd . append ( '{0}' . format ( gzipfile ) ) return __salt__ [ 'cmd.run' ] ( cmd , template = template , runas = runas , python_shell = False ) . splitlines ( )
gunzip the given data and return as much data as possible .