Class: AIPP::NOTAM::Runner

Inherits:
Runner
  • Object
show all
Defined in:
lib/aipp/scopes/notam/runner.rb

Instance Attribute Summary

Attributes inherited from Runner

#aixm

Instance Method Summary collapse

Methods inherited from Runner

#builds_dir, #config_file, #initialize, #inspect, #output_file, #region_dir, #sources_file

Methods included from Debugger

#info, #original_warn, #verbose_info, #warn, #with_debugger

Constructor Details

This class inherits a constructor from AIPP::Runner

Instance Method Details

#effective_atObject



6
7
8
# File 'lib/aipp/scopes/notam/runner.rb', line 6

def effective_at
  AIPP.options.effective_at
end

#expiration_atObject



10
11
12
# File 'lib/aipp/scopes/notam/runner.rb', line 10

def expiration_at
  effective_at.end_of_day.round - 1
end

#runObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/aipp/scopes/notam/runner.rb', line 14

def run
  info("NOTAM effective #{effective_at}", color: :green)
  read_config
  read_region
  read_parsers
  parse_sections
  if aixm.features.any?
    validate_aixm
  end
  write_aixm(AIPP.options.output_file || output_file)
  write_config
end