Class: FlakeySpecCatcher::CliOverride
- Inherits:
-
Object
- Object
- FlakeySpecCatcher::CliOverride
- Defined in:
- lib/flakey_spec_catcher/cli_override.rb
Overview
CliOverride class
Captures command line arguments for manual re-runs
Instance Attribute Summary collapse
-
#dry_run ⇒ Object
readonly
Returns the value of attribute dry_run.
-
#enable_runs ⇒ Object
readonly
Returns the value of attribute enable_runs.
-
#excluded_tags ⇒ Object
readonly
Returns the value of attribute excluded_tags.
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
-
#repeat_factor ⇒ Object
readonly
Returns the value of attribute repeat_factor.
-
#rerun_patterns ⇒ Object
readonly
Returns the value of attribute rerun_patterns.
-
#rerun_usage ⇒ Object
readonly
Returns the value of attribute rerun_usage.
-
#split_index ⇒ Object
readonly
Returns the value of attribute split_index.
-
#split_nodes ⇒ Object
readonly
Returns the value of attribute split_nodes.
-
#test_options ⇒ Object
readonly
Returns the value of attribute test_options.
-
#use_parent ⇒ Object
readonly
Returns the value of attribute use_parent.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ CliOverride
constructor
A new instance of CliOverride.
Constructor Details
#initialize ⇒ CliOverride
Returns a new instance of CliOverride.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 13 def initialize @dry_run = false @enable_runs = true @excluded_tags = [] @use_parent = false @verbose = false @test_options = [] parse_command_line_args validate_arguments end |
Instance Attribute Details
#dry_run ⇒ Object (readonly)
Returns the value of attribute dry_run.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def dry_run @dry_run end |
#enable_runs ⇒ Object (readonly)
Returns the value of attribute enable_runs.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def enable_runs @enable_runs end |
#excluded_tags ⇒ Object (readonly)
Returns the value of attribute excluded_tags.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def @excluded_tags end |
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
11 12 13 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 11 def output_file @output_file end |
#repeat_factor ⇒ Object (readonly)
Returns the value of attribute repeat_factor.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def repeat_factor @repeat_factor end |
#rerun_patterns ⇒ Object (readonly)
Returns the value of attribute rerun_patterns.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def rerun_patterns @rerun_patterns end |
#rerun_usage ⇒ Object (readonly)
Returns the value of attribute rerun_usage.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def rerun_usage @rerun_usage end |
#split_index ⇒ Object (readonly)
Returns the value of attribute split_index.
11 12 13 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 11 def split_index @split_index end |
#split_nodes ⇒ Object (readonly)
Returns the value of attribute split_nodes.
11 12 13 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 11 def split_nodes @split_nodes end |
#test_options ⇒ Object (readonly)
Returns the value of attribute test_options.
11 12 13 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 11 def @test_options end |
#use_parent ⇒ Object (readonly)
Returns the value of attribute use_parent.
10 11 12 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10 def use_parent @use_parent end |
#verbose ⇒ Object (readonly)
Returns the value of attribute verbose.
11 12 13 |
# File 'lib/flakey_spec_catcher/cli_override.rb', line 11 def verbose @verbose end |