def campfire(registry, xml_parent, data):
 root = XML.SubElement(xml_parent, 'hudson.plugins.campfire.CampfireNotifier')
 campfire = XML.SubElement(root, 'campfire')
 if (('subdomain' in data) and data['subdomain']):
  subdomain = XML.SubElement(campfire, 'subdomain')
  subdomain.text = data['subdomain']
 if (('token' in data) and data['token']):
  token = XML.SubElement(campfire, 'token')
  token.text = data['token']
 if ('ssl' in data):
  ssl = XML.SubElement(campfire, 'ssl')
  ssl.text = str(data['ssl']).lower()
 if (('room' in data) and data['room']):
  room = XML.SubElement(root, 'room')
  name = XML.SubElement(room, 'name')
  name.text = data['room']
  XML.SubElement(room, 'campfire reference="../../campfire"')

def campfire ( registry , xml_parent , data ) : root = XML . SubElement ( xml_parent , 'hudson.plugins.campfire.CampfireNotifier' ) campfire = XML . SubElement ( root , 'campfire' ) if ( ( 'subdomain' in data ) and data [ 'subdomain' ] ) : subdomain = XML . SubElement ( campfire , 'subdomain' ) subdomain . text = data [ 'subdomain' ] if ( ( 'token' in data ) and data [ 'token' ] ) : token = XML . SubElement ( campfire , 'token' ) token . text = data [ 'token' ] if ( 'ssl' in data ) : ssl = XML . SubElement ( campfire , 'ssl' ) ssl . text = str ( data [ 'ssl' ] ) . lower ( ) if ( ( 'room' in data ) and data [ 'room' ] ) : room = XML . SubElement ( root , 'room' ) name = XML . SubElement ( room , 'name' ) name . text = data [ 'room' ] XML . SubElement ( room , 'campfire reference="../../campfire"' )
yaml: campfire send build notifications to campfire rooms .