#NEWLINE# @ classmethod #NEWLINE# def get_deployment_methods( cls , cluster ) : #NEWLINE# #INDENT# 'Get deployment method name based on cluster version\n\n        :param cluster: Cluster db object\n        :returns: list of available methods\n        ' #NEWLINE# methods = [ ] #NEWLINE# if objects . Cluster . is_task_deploy_enabled ( cluster ) : #NEWLINE# #INDENT# methods . append ( 'task_deploy' ) #NEWLINE# #UNINDENT# if objects . Release . is_granular_enabled ( cluster . release ) : #NEWLINE# #INDENT# methods . append ( 'granular_deploy' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# methods . append ( 'deploy' ) #NEWLINE# #UNINDENT# return cluster