def deploy_application(war_file, webapp_path=None):
 if (not webapp_path):
  webapp_path = os.path.join(DEFAULT_INSTALLATION_PATH, 'webapps')
 put(local_path=war_file, remote_path=os.path.join(webapp_path, war_file), use_sudo=True)

def deploy_application ( war_file , webapp_path = None ) : if ( not webapp_path ) : webapp_path = os . path . join ( DEFAULT_INSTALLATION_PATH , 'webapps' ) put ( local_path = war_file , remote_path = os . path . join ( webapp_path , war_file ) , use_sudo = True )
deploy an application into the webapp path for a tomcat installation .