def get_release(artifactory_url, repository, group_id, artifact_id, packaging, version, target_dir='/tmp', target_file=None, classifier=None, username=None, password=None):
 log.debug('======================== MODULE FUNCTION: artifactory.get_release(artifactory_url=%s, repository=%s, group_id=%s, artifact_id=%s, packaging=%s, version=%s, target_dir=%s, classifier=%s)', artifactory_url, repository, group_id, artifact_id, packaging, version, target_dir, classifier)
 headers = {}
 if (username and password):
  headers['Authorization'] = 'Basic {0}'.format(base64.encodestring('{0}:{1}'.format(username, password)).replace('\n', ''))
 (release_url, file_name) = _get_release_url(repository, group_id, artifact_id, packaging, version, artifactory_url, classifier)
 target_file = __resolve_target_file(file_name, target_dir, target_file)
 return __save_artifact(release_url, target_file, headers)

def get_release ( artifactory_url , repository , group_id , artifact_id , packaging , version , target_dir = '/tmp' , target_file = None , classifier = None , username = None , password = None ) : log . debug ( '======================== MODULE FUNCTION: artifactory.get_release(artifactory_url=%s, repository=%s, group_id=%s, artifact_id=%s, packaging=%s, version=%s, target_dir=%s, classifier=%s)' , artifactory_url , repository , group_id , artifact_id , packaging , version , target_dir , classifier ) headers = { } if ( username and password ) : headers [ 'Authorization' ] = 'Basic {0}' . format ( base64 . encodestring ( '{0}:{1}' . format ( username , password ) ) . replace ( '\n' , '' ) ) ( release_url , file_name ) = _get_release_url ( repository , group_id , artifact_id , packaging , version , artifactory_url , classifier ) target_file = __resolve_target_file ( file_name , target_dir , target_file ) return __save_artifact ( release_url , target_file , headers )
gets the specified release of the artifact artifactory_url url of artifactory instance repository release repository in artifactory to retrieve artifact from .