Method: What::Sup#sections_to_show
- Defined in:
- lib/what/sup.rb
#sections_to_show ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/what/sup.rb', line 68 def sections_to_show sections = [] if @opts.alerts sections << ['Alerts', 'alerts'] end if @opts.warnings || @opts.oks sections << ['Warnings', 'warnings'] end if @opts.oks sections << ['OKs', 'oks'] end sections end |