Class: Synvert::Core::Configuration
- Inherits:
-
Object
- Object
- Synvert::Core::Configuration
- Defined in:
- lib/synvert/core/configuration.rb
Overview
Synvert global configuration.
Class Attribute Summary collapse
-
.number_of_workers ⇒ Integer
Number of workers.
-
.only_paths ⇒ Array<String>
Get a list of only paths.
-
.root_path ⇒ String
Get the path.
-
.show_run_process ⇒ Boolean
Check if show run process.
-
.single_quote ⇒ Boolean
Use single quote or double quote.
-
.skip_paths ⇒ Array<String>
Get a list of skip paths.
Class Attribute Details
.number_of_workers ⇒ Integer
Number of workers
46 47 48 |
# File 'lib/synvert/core/configuration.rb', line 46 def number_of_workers @number_of_workers || 1 end |
.only_paths ⇒ Array<String>
Get a list of only paths.
32 33 34 |
# File 'lib/synvert/core/configuration.rb', line 32 def only_paths @only_paths || [] end |
.root_path ⇒ String
Get the path.
18 19 20 |
# File 'lib/synvert/core/configuration.rb', line 18 def root_path @root_path || '.' end |
.show_run_process ⇒ Boolean
Check if show run process.
39 40 41 |
# File 'lib/synvert/core/configuration.rb', line 39 def show_run_process @show_run_process || false end |
.single_quote ⇒ Boolean
Use single quote or double quote.
53 54 55 |
# File 'lib/synvert/core/configuration.rb', line 53 def single_quote @single_quote.nil? ? true : @single_quote end |
.skip_paths ⇒ Array<String>
Get a list of skip paths.
25 26 27 |
# File 'lib/synvert/core/configuration.rb', line 25 def skip_paths @skip_paths || [] end |