#NEWLINE# def install_extjs( self , cluster ) : #NEWLINE# #INDENT# extjs_remote_location = self . c_helper . get_extjs_lib_url ( cluster ) #NEWLINE# extjs_vm_location_dir = '/var/lib/oozie' #NEWLINE# extjs_vm_location_path = ( extjs_vm_location_dir + '/extjs.zip' ) #NEWLINE# with self . get_oozie ( cluster ) . remote ( ) as r : #NEWLINE# #INDENT# if ( r . execute_command ( ( 'ls %s/ext-2.2' % extjs_vm_location_dir ) , raise_when_error = False ) [ 0 ] != 0 ) : #NEWLINE# #INDENT# r . execute_command ( ( "curl -L -o '%s' %s" % ( extjs_vm_location_path , extjs_remote_location ) ) , run_as_root = True ) #NEWLINE# r . execute_command ( ( 'unzip %s -d %s' % ( extjs_vm_location_path , extjs_vm_location_dir ) ) , run_as_root = True )