Module: GClouder::Config::Defaults
- Includes:
- Logging
- Defined in:
- lib/gclouder/config/defaults.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Logging
#add, #bad, #change, #debug, #error, #fatal, #good, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning
Class Method Details
.defaults ⇒ Object
10
11
12
|
# File 'lib/gclouder/config/defaults.rb', line 10
def self.defaults
GClouder::ConfigLoader.load("../../assets/defaults")
end
|
.included(klass) ⇒ Object
22
23
24
|
# File 'lib/gclouder/config/defaults.rb', line 22
def self.included(klass)
klass.extend Defaults
end
|
.load ⇒ Object
14
15
16
|
# File 'lib/gclouder/config/defaults.rb', line 14
def self.load
defaults
end
|
.section(section) ⇒ Object
26
27
28
|
# File 'lib/gclouder/config/defaults.rb', line 26
def self.section(section)
GClouder::ConfigSection.find(section, defaults)
end
|
.section?(section) ⇒ Boolean
30
31
32
|
# File 'lib/gclouder/config/defaults.rb', line 30
def self.section?(section)
GClouder::ConfigSection.find(section, defaults, silent: true)
end
|
Instance Method Details
#defaults ⇒ Object
18
19
20
|
# File 'lib/gclouder/config/defaults.rb', line 18
def defaults
Defaults.defaults
end
|