#NEWLINE# @ classmethod #NEWLINE# def set_property( cls , options ) : #NEWLINE# #INDENT# 'Instructs AppScale to replace the value it uses for a particular\n    AppController instance variable (property) with a new value.\n\n    Args:\n      options: A Namespace that has fields for each parameter that can be passed\n        in via the command-line interface.\n    ' #NEWLINE# shadow_host = LocalState . get_host_with_role ( options . keyname , 'shadow' ) #NEWLINE# acc = AppControllerClient ( shadow_host , LocalState . get_secret_key ( options . keyname ) ) #NEWLINE# result = acc . set_property ( options . property_name , options . property_value ) #NEWLINE# if ( result == 'OK' ) : #NEWLINE# #INDENT# AppScaleLogger . success ( 'Successfully updated the given property.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise AppControllerException ( ( 'Unable to update the given property ' + 'because: {0}' . format ( acc ) ) )