2 3 4 5 6 7
# File 'lib/zabbix/sender/easy.rb', line 2 def self.run (task, opts={}, &block) zbx = Zabbix::Sender.new(opts) zbx.send_start block.call(zbx) zbx.send_stop end