#NEWLINE# def install_cbl_tool( tool_name , tool_version , install_dir , cbl_config = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# cbl_dir = __clone_cloudbiolinux ( cbl_install_command ) #NEWLINE# cbl_install_command = [ os . path . join ( cbl_dir , 'deploy' , 'deploy.sh' ) , '--action' , 'install_galaxy_tool' ] #NEWLINE# deployer_args = { #NEWLINE# #INDENT# 'vm_provider' : 'novm' , #NEWLINE# 'galaxy_tool_name' : tool_name , #NEWLINE# 'galaxy_tool_version' : tool_version , #NEWLINE# 'galaxy_tool_dir' : install_dir , #NEWLINE# 'settings' : '__none__' , #NEWLINE# #UNINDENT# } #NEWLINE# for ( prop , val ) in deployer_args . iteritems ( ) : #NEWLINE# #INDENT# cbl_install_command . append ( ( '--%s' % prop ) ) #NEWLINE# cbl_install_command . append ( val ) #NEWLINE# #UNINDENT# fabric_properties = { #NEWLINE# #INDENT# 'use_sudo' : 'False' , #NEWLINE# 'galaxy_user' : getuser ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# for ( prop , val ) in fabric_properties . iteritems ( ) : #NEWLINE# #INDENT# cbl_install_command . append ( '--fabric_property' ) #NEWLINE# cbl_install_command . append ( prop ) #NEWLINE# cbl_install_command . append ( '--fabric_value' ) #NEWLINE# cbl_install_command . append ( val ) #NEWLINE# #UNINDENT# check_call ( cbl_install_command )