Module: GClouder::Config::ResourceRepresentations

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

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

.loadObject



14
15
16
# File 'lib/gclouder/config/resource_representations.rb', line 14

def self.load
  properties
end

.propertiesObject



10
11
12
# File 'lib/gclouder/config/resource_representations.rb', line 10

def self.properties
  @properties ||= GClouder::ConfigLoader.load("../../assets/resource_representations")
end

.section(section) ⇒ Object



26
27
28
# File 'lib/gclouder/config/resource_representations.rb', line 26

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

Instance Method Details

#propertiesObject



18
19
20
# File 'lib/gclouder/config/resource_representations.rb', line 18

def properties
  ResourceRepresentations.properties
end