Method: Appfuel::Repository::Mapper#map

Defined in:
lib/appfuel/storage/repository/mapper.rb

#mapHash

The map represents domain mappings to one or more storage systems. Currently one map represents all storage. So if you have a file, and database storage for a given domain the storage attributes are the same for each interface. This will load the repository mappings from the application container if no map as been manually set.

Examples:

a map has the following structure

{
  domain_name: {
    domain_attr1: <MappingEntry>,
    domain_attr1: <MappingEntry>
  }
  ...
}

Returns:

  • (Hash)


33
34
35
# File 'lib/appfuel/storage/repository/mapper.rb', line 33

def map
  @map ||= mappings_from_container
end