Class: Appydave::Tools::Configuration::Models::SettingsConfig
- Inherits:
-
ConfigBase
- Object
- ConfigBase
- Appydave::Tools::Configuration::Models::SettingsConfig
show all
- Defined in:
- lib/appydave/tools/configuration/models/settings_config.rb
Overview
Global settings that can be referenced by other configurations or tools
Instance Attribute Summary
Attributes inherited from ConfigBase
#config_path, #data
Instance Method Summary
collapse
Methods inherited from ConfigBase
#config_name, #debug, #initialize, #load, #name, #save
Instance Method Details
#download_folder ⇒ Object
23
24
25
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 23
def download_folder
get('download-folder')
end
|
#download_image_folder ⇒ Object
27
28
29
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 27
def download_image_folder
get('download-image-folder') || download_folder
end
|
#ecamm_recording_folder ⇒ Object
19
20
21
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 19
def ecamm_recording_folder
get('ecamm-recording-folder')
end
|
#get(key, default = nil) ⇒ Object
13
14
15
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 13
def get(key, default = nil)
data.fetch(key, default)
end
|
#print ⇒ Object
31
32
33
34
35
36
37
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 31
def print
log.subheading 'Settings Configuration'
data.each do |key, value|
log.kv key, value
end
end
|
#set(key, value) ⇒ Object
9
10
11
|
# File 'lib/appydave/tools/configuration/models/settings_config.rb', line 9
def set(key, value)
data[key] = value
end
|