Class: Spanx::CLI::Watch
- Inherits:
-
Spanx::CLI
- Object
- Spanx::CLI
- Spanx::CLI::Watch
- Includes:
- Helper::Exit
- Defined in:
- lib/spanx/cli/watch.rb
Instance Attribute Summary
Attributes inherited from Spanx::CLI
Instance Method Summary collapse
Methods included from Helper::Exit
#error_exit_with_msg, #help_exit
Methods included from Helper::Subclassing
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 |