#NEWLINE# def run( self , hook_id ) : #NEWLINE# #INDENT# '\n        Enable a hook to monitor through Travis\n        ' #NEWLINE# path = ( '/hooks/' + str ( hook_id ) ) #NEWLINE# json_req = { #NEWLINE# #INDENT# 'hook' : { #NEWLINE# #INDENT# 'active' : 'true' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# json_req = json . dumps ( json_req ) #NEWLINE# response = self . _perform_request ( path , data = json_req , method = 'PUT' ) #NEWLINE# return response . content