class Ruboty::ElbMonitor::Actions::List
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/elb_monitor/actions/list.rb, line 7 def call message.reply(list) rescue => e message.reply(e.message) end
Private Instance Methods
list()
click to toggle source
# File lib/ruboty/elb_monitor/actions/list.rb, line 14 def list if elbs.empty? "ELB not found" else elbs.map{|k, v| "#{k}: #{v}"}.join("\n") end end