Class: Kitchen::Config

Inherits:
Object show all
Defined in:
lib/kitchen/config.rb

Overview

Kitchen configuration

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash: {}, selectors: nil) ⇒ Config

Creates a new Config instance



34
35
36
37
38
39
# File 'lib/kitchen/config.rb', line 34

def initialize(hash: {}, selectors: nil)
  @selectors = selectors || Kitchen::Selectors::Standard1.new
  @enable_all_namespaces = hash[:enable_all_namespaces] || true
  @enable_search_cache = hash[:enable_search_cache] || false
  @hash = hash
end

Instance Attribute Details

#enable_all_namespacesBoolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/kitchen/config.rb', line 18

def enable_all_namespaces
  @enable_all_namespaces
end

#enable_search_cacheBoolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/kitchen/config.rb', line 24

def enable_search_cache
  @enable_search_cache
end

#selectorsSelectors::Base (readonly)

Named CSS or XPath selectors

Returns:



12
13
14
# File 'lib/kitchen/config.rb', line 12

def selectors
  @selectors
end

Class Method Details

.new_from_file(_file) ⇒ Object

Creates a new config from a file (not implemented)



28
29
30
# File 'lib/kitchen/config.rb', line 28

def self.new_from_file(_file)
  raise 'NYI'
end