Module: GClouder::Mappings::File
- Includes:
- Logging
- Defined in:
- lib/gclouder/mappings/file.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
.included(klass) ⇒ Object
22
23
24
|
# File 'lib/gclouder/mappings/file.rb', line 22
def self.included(klass)
klass.extend File
end
|
.load ⇒ Object
14
15
16
|
# File 'lib/gclouder/mappings/file.rb', line 14
def self.load
mappings
end
|
.mappings ⇒ Object
10
11
12
|
# File 'lib/gclouder/mappings/file.rb', line 10
def self.mappings
GClouder::ConfigLoader.load("../../assets/mappings/file")
end
|
.section(section) ⇒ Object
26
27
28
|
# File 'lib/gclouder/mappings/file.rb', line 26
def self.section(section)
GClouder::ConfigSection.find(section, mappings)
end
|
Instance Method Details
#file ⇒ Object
18
19
20
|
# File 'lib/gclouder/mappings/file.rb', line 18
def file
File.mappings
end
|