Module: Falcon::Command::Paths

Included in:
Proxy, Redirect, Virtual
Defined in:
lib/falcon/command/paths.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/falcon/command/paths.rb', line 32

def configuration
  configuration = Configuration.new
  
  self.resolved_paths.each do |path|
    path = File.expand_path(path)
    
    configuration.load_file(path)
  end
  
  return configuration
end

#resolved_paths(&block) ⇒ Object



26
27
28
29
30
# File 'lib/falcon/command/paths.rb', line 26

def resolved_paths(&block)
  @paths.collect do |path|
    Dir.glob(path)
  end.flatten.sort.uniq.each(&block)
end