Method: Rdm::SpecRunner::Runner#initialize
- Defined in:
- lib/rdm/spec_runner/runner.rb
#initialize(package: nil, spec_matcher: nil, path: nil, from: nil, show_missing_packages: true, skip_ignored_packages: false, stdout: STDOUT, show_output: true) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rdm/spec_runner/runner.rb', line 9 def initialize( package: nil, spec_matcher: nil, path: nil, from: nil, show_missing_packages: true, skip_ignored_packages: false, stdout: STDOUT, show_output: true ) @package_name = package @no_specs_packages = [] @spec_matcher = spec_matcher.to_s.split(':')[0] @spec_string_number = spec_matcher.to_s.split(':')[1].to_i @path = path @run_all = @package_name.nil? @show_missing_packages = show_missing_packages && !@package_name @skip_ignored_packages = skip_ignored_packages @skipped_packages = [] @stdout = stdout @show_output = show_output @from = from end |