Sha256: fd951b4433eafcb838d1b17fb7a81a10ab645d92053760aa351ff5ce5afa73e1
Contents?: true
Size: 1022 Bytes
Versions: 3
Compression:
Stored size: 1022 Bytes
Contents
# encoding: utf-8 module GpxTrackGenerator # Runner class Runner < Thor option :file, default: 'track.gpx', desc: 'GPX track file name' option :name, default: 'Track #1', required: true, desc: 'Name for track' option :reverse, type: :boolean, default: false, desc: 'Reverse track (default: false)' option :single_segment, type: :boolean, default: false, desc: 'Only one track segment for the whole track. Otherwise one segment for each input file (default: true)' argument :input_files, type: :array, desc: 'GPX track or route files' desc 'generate', 'Generate gpx track' 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 default_command :generate end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gpx_track_generator-0.3.5 | lib/gpx_track_generator/runner.rb |
gpx_track_generator-0.3.3 | lib/gpx_track_generator/runner.rb |
gpx_track_generator-0.3.1 | lib/gpx_track_generator/runner.rb |