Class: GpxTrackGenerator::Runner

Inherits:
Thor
  • Object
show all
Defined in:
lib/gpx_track_generator/runner.rb

Overview

Runner

Instance Method Summary collapse

Instance Method Details

#generateObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/gpx_track_generator/runner.rb', line 12

def generate
  GpxTrackGenerator.logger.info "Generating GPX Track \"#{options[:file]}\" from #{input_files.to_list(last_separator: ' and ')}"

  Api.generate(
    input_files: input_files,
    track_name: options[:name],
    output_file: options[:file],
    reverse: options[:reverse],
    single_segment: options[:single_segment]
  )
end