Module: Flying

Defined in:
lib/flying/monitor.rb,
lib/flying.rb,
lib/flying/bots/up.rb,
lib/flying/version.rb

Overview

This class instance holds the current monitoring.

Defined Under Namespace

Modules: Bot Classes: Monitor

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.add_bot(bot) ⇒ Object



22
23
24
25
# File 'lib/flying.rb', line 22

def self.add_bot(bot)
  @monitor ||= Flying::Monitor.new
  @monitor.add_bot(bot)
end

.an_error_ocurred(value = '') ⇒ Object



17
18
19
20
# File 'lib/flying.rb', line 17

def self.an_error_ocurred(value = '')
  return @an_error_ocurred if value == ''
  @an_error_ocurred = value
end

.start(&block) ⇒ Object



10
11
12
13
14
15
# File 'lib/flying.rb', line 10

def self.start(&block)
  begin
    @monitor.perform
  rescue Interrupt => e
  end
end