lib/parker/announcement.rb
# Generates the body of the hipchat message for priority 2 issues
# @return [String] containing html formatted hipchat message
Generates the body of the hipchat message for priority 2 issues
Generates the body of the hipchat message for priority 2 issues
def p2_announcement(client)
      p2s = issue_handler.p2_issues
      case client
      when 'hipchat'
        html = "There are currently <b>#{p2s.count}</b> #{ENV['P2_LABEL']} bugs open.<br>"
        html += issue_handler.hipchat_issues_info(p2s)
      when 'slack'
        html = "There are currently *#{p2s.count}* #{ENV['P2_LABEL']} bugs open.\n"
        html += issue_handler.slack_issues_info(p2s)
      end
      html
    end
def p2_announcement ( client ) p2s = issue_handler . p2_issues case client when 'hipchat' html = "There are currently <b>#{p2s.count}</b> #{ENV['P2_LABEL']} bugs open.<br>" html += issue_handler . hipchat_issues_info ( p2s ) when 'slack' html = "There are currently *#{p2s.count}* #{ENV['P2_LABEL']} bugs open.\n" html += issue_handler . slack_issues_info ( p2s ) end html end
Generates the body of the hipchat message for priority 2 issues
Generates the body of the hipchat message for priority 2 issues
containing html formatted hipchat message
containing html formatted hipchat message
String
client
<not_specific>