Sha256: cebe278c7218988cbabe4d975d4421ecc64a238e1bb5800f6db10cd423838f6d
Contents?: true
Size: 895 Bytes
Versions: 4
Compression:
Stored size: 895 Bytes
Contents
module AIPP module NOTAM class Executable < AIPP::Executable def initialize(exe_file) super now = Time.now.utc.round AIPP.options.merge( module: 'NOTAM', effective_at: now - now.sec - (now.min * 60) # previous full hour ) OptionParser.new do |o| o.banner = <<~END Download online NOTAM and convert it to #{AIPP.options.schema.upcase}. Usage: #{File.basename($0)} [options] END common_options(o) o.on('-t', '--effective (TIME)', String, %Q[effective after this point in time (default: #{AIPP.options.effective_at})]) { AIPP.options.effective_at = Time.parse(_1) } o.on('-x', '--crossload DIR', String, 'crossload directory') { AIPP.options.crossload = Pathname(_1) } developer_options(o) end.parse! end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aipp-2.0.3 | lib/aipp/notam/executable.rb |
aipp-2.0.2 | lib/aipp/notam/executable.rb |
aipp-2.0.1 | lib/aipp/notam/executable.rb |
aipp-2.0.0 | lib/aipp/notam/executable.rb |