Class: Wavesync::Commands::Analyze
- Defined in:
- lib/wavesync/commands/analyze.rb
Constant Summary collapse
- FORCE_OPTION =
Option.new(short: '-f', long: '--force', description: 'Overwrite existing BPM values')
Instance Method Summary collapse
-
#run ⇒ Object
: () -> void.
Methods inherited from Command
Instance Method Details
#run ⇒ Object
: () -> void
16 17 18 19 20 21 22 |
# File 'lib/wavesync/commands/analyze.rb', line 16 def run , config = (banner: 'Usage: wavesync analyze [options]') do |opts, opts_hash| opts.on(*FORCE_OPTION.to_a) { opts_hash[:overwrite] = true } end Wavesync::Analyzer.new(config.library).analyze(overwrite: [:overwrite] || false) end |