Class: CC::Config::DefaultAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/cc/config/default_adapter.rb

Constant Summary collapse

ENGINES =

intentionally not sorted: we want them in a particular order

{
  "structure".freeze => "stable".freeze,
  "duplication".freeze => "stable".freeze,
}.freeze
EXCLUDE_PATTERNS =
%w[
  config/
  db/
  dist/
  features/
  **/node_modules/
  script/
  **/spec/
  **/test/
  **/tests/
  Tests/
  **/vendor/
  **/*_test.go
  **/*.d.ts
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ DefaultAdapter

Returns a new instance of DefaultAdapter.



28
29
30
31
32
33
# File 'lib/cc/config/default_adapter.rb', line 28

def initialize(data = {})
  @config = data

  apply_default_excludes
  apply_default_engines
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



26
27
28
# File 'lib/cc/config/default_adapter.rb', line 26

def config
  @config
end