#NEWLINE# @ login_required #NEWLINE# def build_list( valid_token = None , limit = 5 ) : #NEWLINE# #INDENT# term = get_term ( ) #NEWLINE# if ( not valid_token ) : #NEWLINE# #INDENT# raise ValueError ( 'A valid token is required!' ) #NEWLINE# #UNINDENT# projectId = get_value ( VALUE_PROJECT_ID , print_warnings = False ) #NEWLINE# if ( not builds ) : #NEWLINE# #INDENT# puts ( ( term . red ( 'Error: ' ) + 'No application found. Please create or link an application first' ) ) #NEWLINE# return #NEWLINE# #UNINDENT# builds = get_builds ( valid_token , projectId ) #NEWLINE# print_builds ( builds , limit = limit )