Module: OpenHAB::RSpec::Configuration
- Defined in:
- lib/openhab/rspec/configuration.rb
Overview
Contains configuration for how the openHAB instance should be set up for the testing environment.
Class Attribute Summary collapse
-
.include_bindings ⇒ true, false
Copy binding configuration from the root openHAB instance.
-
.include_jsondb ⇒ true, false
Copy the JSONDB (managed thing and item configuration) from the root openHAB instance.
-
.private_confdir ⇒ true, false
Use a private (empty) confdir (scripts, rules, items, and things files), instead of sharing with the root openHAB instance.
-
.use_root_instance ⇒ true, false
Use the root openHAB instance directly, rather than creating a private (but linked) instance.
Class Attribute Details
.include_bindings ⇒ true, false
Copy binding configuration from the root openHAB instance.
Default true
.
17 18 19 |
# File 'lib/openhab/rspec/configuration.rb', line 17 def include_bindings @include_bindings end |
.include_jsondb ⇒ true, false
Copy the JSONDB (managed thing and item configuration) from the root openHAB instance.
Default true
.
27 28 29 |
# File 'lib/openhab/rspec/configuration.rb', line 27 def include_jsondb @include_jsondb end |
.private_confdir ⇒ true, false
Use a private (empty) confdir (scripts, rules, items, and things files), instead of sharing with the root openHAB instance.
Default false
.
37 38 39 |
# File 'lib/openhab/rspec/configuration.rb', line 37 def private_confdir @private_confdir end |
.use_root_instance ⇒ true, false
Use the root openHAB instance directly, rather than creating a private (but linked) instance.
Default false
.
47 48 49 |
# File 'lib/openhab/rspec/configuration.rb', line 47 def use_root_instance @use_root_instance end |