Class: ReeSpecCli::RunCommand

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_spec/packages/ree_spec_cli/package/ree_spec_cli/run_command.rb

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ree_spec/packages/ree_spec_cli/package/ree_spec_cli/run_command.rb', line 11

def call
  action_proc = Proc.new do |package_names, spec_matcher, tag, files, run_all, only_failed, project_path, process_count|
    run_specs(
      package_names, spec_matcher, tag, files, run_all, only_failed,
      project_path, process_count
    )
  end

  command = CommandBuilder.new.build(&action_proc)
  command.run!
end