Class: Spanx::CLI::Watch

Inherits:
Spanx::CLI show all
Includes:
Helper::Exit
Defined in:
lib/spanx/cli/watch.rb

Instance Attribute Summary

Attributes inherited from Spanx::CLI

#args

Instance Method Summary collapse

Methods included from Helper::Exit

#error_exit_with_msg, #help_exit

Methods included from Helper::Subclassing

included

Instance Method Details

#run(argv = ARGV) ⇒ Object



82
83
84
85
86
87
88
89
# File 'lib/spanx/cli/watch.rb', line 82

def run(argv = ARGV)
  generate_config(argv)
  validate!
  runners = %w(log_reader collector writer)
  runners << "analyzer" if config[:analyze]

  Spanx::Runner.new(*runners, config).run
end