Module: Cure::Configuration
Defined Under Namespace
Classes: Config, ConfigurationSource
Instance Method Summary
collapse
Instance Method Details
10
11
12
13
14
15
|
# File 'lib/cure/config.rb', line 10
def config
conf = ConfigurationSource.instance.config
raise "Set config first" unless conf
conf
end
|
#create_config(source_file_location, template, output_dir) ⇒ Config
26
27
28
|
# File 'lib/cure/config.rb', line 26
def create_config(source_file_location, template, output_dir)
Config.new(source_file_location, template, output_dir)
end
|
#register_config(request_config) ⇒ Object
18
19
20
|
# File 'lib/cure/config.rb', line 18
def register_config(request_config)
ConfigurationSource.instance.load_config(request_config)
end
|