Class: AIPP::AIP::Runner

Inherits:
Runner
  • Object
show all
Defined in:
lib/aipp/scopes/aip/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/aip/runner.rb', line 6

def effective_at
  AIPP.options.airac.effective.begin
end

#expiration_atObject



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

def expiration_at
  AIPP.options.airac.effective.end
end

#runObject



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

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