Module: Cure::Configuration
Defined Under Namespace
Classes: Config, ConfigurationSource, CsvFileProxy, DefaultFileHandler, FileContentsHandler, FileHandler, PathnameHandler
Instance Method Summary
collapse
Instance Method Details
11
12
13
14
15
16
|
# File 'lib/cure/config.rb', line 11
def config
conf = ConfigurationSource.instance.config
raise "Set config first" unless conf
conf
end
|
#create_config(source_files, template) ⇒ Config
21
22
23
|
# File 'lib/cure/config.rb', line 21
def create_config(source_files, template)
Config.new(source_files, template)
end
|
#register_config(request_config) ⇒ Object
26
27
28
|
# File 'lib/cure/config.rb', line 26
def register_config(request_config)
ConfigurationSource.instance.load_config(request_config)
end
|