Class: FlakeySpecCatcher::UserConfig
- Inherits:
-
Object
- Object
- FlakeySpecCatcher::UserConfig
- Defined in:
- lib/flakey_spec_catcher/user_config.rb
Overview
rubocop:disable Metrics/ClassLength
Constant Summary collapse
- USER_CONFIG_ENV_VARS =
%w[FSC_REPEAT_FACTOR FSC_IGNORE_FILES FSC_IGNORE_BRANCHES FSC_SILENT_MODE FSC_RERUN_FILE_ONLY FSC_USAGE_PATTERNS FSC_EXCLUDED_TAGS FSC_OUTPUT_FILE].freeze
Instance Attribute Summary collapse
-
#enable_runs ⇒ Object
readonly
Returns the value of attribute enable_runs.
-
#excluded_tags ⇒ Object
readonly
Returns the value of attribute excluded_tags.
-
#ignore_branches ⇒ Object
readonly
Returns the value of attribute ignore_branches.
-
#ignore_files ⇒ Object
readonly
Returns the value of attribute ignore_files.
-
#manual_rerun_patterns ⇒ Object
readonly
Returns the value of attribute manual_rerun_patterns.
-
#manual_rerun_usage ⇒ Object
readonly
Returns the value of attribute manual_rerun_usage.
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
-
#repeat_factor ⇒ Object
readonly
Returns the value of attribute repeat_factor.
-
#rerun_file_only ⇒ Object
readonly
Returns the value of attribute rerun_file_only.
-
#rspec_usage_patterns ⇒ Object
readonly
Returns the value of attribute rspec_usage_patterns.
-
#silent_mode ⇒ Object
readonly
Returns the value of attribute silent_mode.
Instance Method Summary collapse
-
#initialize(cli_override: CliOverride.new) ⇒ UserConfig
constructor
A new instance of UserConfig.
Constructor Details
#initialize(cli_override: CliOverride.new) ⇒ UserConfig
Returns a new instance of UserConfig.
20 21 22 23 24 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 20 def initialize(cli_override: CliOverride.new) apply_env_var_settings @cli_override = cli_override override_settings end |
Instance Attribute Details
#enable_runs ⇒ Object (readonly)
Returns the value of attribute enable_runs.
14 15 16 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 14 def enable_runs @enable_runs end |
#excluded_tags ⇒ Object (readonly)
Returns the value of attribute excluded_tags.
12 13 14 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 12 def @excluded_tags end |
#ignore_branches ⇒ Object (readonly)
Returns the value of attribute ignore_branches.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def ignore_branches @ignore_branches end |
#ignore_files ⇒ Object (readonly)
Returns the value of attribute ignore_files.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def ignore_files @ignore_files end |
#manual_rerun_patterns ⇒ Object (readonly)
Returns the value of attribute manual_rerun_patterns.
13 14 15 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 13 def manual_rerun_patterns @manual_rerun_patterns end |
#manual_rerun_usage ⇒ Object (readonly)
Returns the value of attribute manual_rerun_usage.
13 14 15 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 13 def manual_rerun_usage @manual_rerun_usage end |
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
14 15 16 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 14 def output_file @output_file end |
#repeat_factor ⇒ Object (readonly)
Returns the value of attribute repeat_factor.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def repeat_factor @repeat_factor end |
#rerun_file_only ⇒ Object (readonly)
Returns the value of attribute rerun_file_only.
12 13 14 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 12 def rerun_file_only @rerun_file_only end |
#rspec_usage_patterns ⇒ Object (readonly)
Returns the value of attribute rspec_usage_patterns.
12 13 14 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 12 def rspec_usage_patterns @rspec_usage_patterns end |
#silent_mode ⇒ Object (readonly)
Returns the value of attribute silent_mode.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def silent_mode @silent_mode end |