Class: Synvert::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/synvert/core/configuration.rb

Overview

Synvert global configuration.

Class Attribute Summary collapse

Class Attribute Details

.number_of_workersInteger

Number of workers

Returns:

  • (Integer)

    default is 1



46
47
48
# File 'lib/synvert/core/configuration.rb', line 46

def number_of_workers
  @number_of_workers || 1
end

.only_pathsArray<String>

Get a list of only paths.

Returns:

  • (Array<String>)

    default is [].



32
33
34
# File 'lib/synvert/core/configuration.rb', line 32

def only_paths
  @only_paths || []
end

.root_pathString

Get the path.

Returns:

  • (String)

    default is '.'



18
19
20
# File 'lib/synvert/core/configuration.rb', line 18

def root_path
  @root_path || '.'
end

.show_run_processBoolean

Check if show run process.

Returns:

  • (Boolean)

    default is false



39
40
41
# File 'lib/synvert/core/configuration.rb', line 39

def show_run_process
  @show_run_process || false
end

.single_quoteBoolean

Use single quote or double quote.

Returns:

  • (Boolean)

    true if use single quote, default is true



53
54
55
# File 'lib/synvert/core/configuration.rb', line 53

def single_quote
  @single_quote.nil? ? true : @single_quote
end

.skip_pathsArray<String>

Get a list of skip paths.

Returns:

  • (Array<String>)

    default is [].



25
26
27
# File 'lib/synvert/core/configuration.rb', line 25

def skip_paths
  @skip_paths || []
end