#NEWLINE# def get_builds( valid_token , projectId ) : #NEWLINE# #INDENT# term = get_term ( ) #NEWLINE# c = Client ( ) #NEWLINE# puts ( 'Retrieving builds from wercker...' ) #NEWLINE# ( status , result ) = c . get_builds ( valid_token , projectId ) #NEWLINE# if ( status != 200 ) : #NEWLINE# #INDENT# puts ( ( term . yellow ( 'Warning: ' ) + 'A problem occurred while retrieving builds' ) ) #NEWLINE# #UNINDENT# return c