reads the master kill switch . instead of fileboolean , we use a text file so that the admin can prevent jenkins from writing this to file . concode_field_sep CallableRejectionConfig rejected concode_elem_sep FilePathRuleConfig filePathRules concode_elem_sep boolean masterKillSwitch concode_elem_sep Jenkins jenkins concode_elem_sep Logger LOGGER concode_elem_sep CallableWhitelistConfig whitelisted concode_field_sep boolean getMasterKillSwitch concode_elem_sep Object getTarget concode_elem_sep HttpResponse doApprove concode_elem_sep File getMasterKillSwitchFile concode_elem_sep InputStream transformForWindows concode_elem_sep HttpResponse doSubmit concode_elem_sep HttpResponse doApproveAll concode_elem_sep void placeDefaultRule concode_elem_sep boolean isWhitelisted concode_elem_sep boolean checkFileAccess concode_elem_sep void setMasterKillSwitch
boolean function ( ) { File loc0 = getMasterKillSwitchFile ( ) ; try { if ( ! loc0 . exists ( ) ) return true ; return Boolean . parseBoolean ( FileUtils . readFileToString ( loc0 ) . trim ( ) ) ; } catch ( IOException loc1 ) { LOGGER . log ( WARNING , "srini_string" + loc0 , loc1 ) ; return false ; } }