Module: GClouder::Mappings::Property

Includes:
Logging
Defined in:
lib/gclouder/mappings/property.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/property.rb', line 22

def self.included(klass)
  klass.extend Property
end

.loadObject



14
15
16
# File 'lib/gclouder/mappings/property.rb', line 14

def self.load
  mappings
end

.mappingsObject



10
11
12
# File 'lib/gclouder/mappings/property.rb', line 10

def self.mappings
  YAML.load_file(::File.join(::File.dirname(__FILE__), "../../../assets/mappings/property.yml"))
end

.section(section) ⇒ Object



26
27
28
# File 'lib/gclouder/mappings/property.rb', line 26

def self.section(section)
  GClouder::ConfigSection.find(section, mappings)
end

Instance Method Details

#mappingsObject



18
19
20
# File 'lib/gclouder/mappings/property.rb', line 18

def mappings
  Property.mappings
end