Class: R2OAS::Schema::Monitor

Inherits:
Base show all
Defined in:
lib/r2-oas/schema/monitor.rb

Instance Method Summary collapse

Constructor Details

#initialize(before_schema_data, options) ⇒ Monitor

Returns a new instance of Monitor.



9
10
11
12
# File 'lib/r2-oas/schema/monitor.rb', line 9

def initialize(before_schema_data, options)
  super(options)
  @before_schema_data = before_schema_data
end

Instance Method Details

#startObject



14
15
16
17
18
19
20
# File 'lib/r2-oas/schema/monitor.rb', line 14

def start
  EM.run do
    ensure_save_tmp_schema_file
    signal_trap('INT')
    signal_trap('TERM')
  end
end