Module: Constantinople

Defined in:
lib/constantinople.rb,
lib/constantinople/version.rb,
lib/constantinople/deep_merge_map.rb

Defined Under Namespace

Modules: DeepMergeMap

Constant Summary collapse

VERSION =
"0.2.2"

Class Method Summary collapse

Class Method Details

.reload!Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/constantinople.rb', line 9

def self.reload!
  result = Map.new
  ignore_files = []
  caller_config_directories do |dir|
    ignore_files += files_to_ignore(dir)
  end
  ignore_files.uniq!
  caller_config_directories do |dir|
    result.deeper_merge!(load_from_directory(dir, :ignore => ignore_files))
  end
  result # I'm the map, I'm the map, I'm the map, I'm the map...
end