Module: Falcon::Command::Paths

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

Instance Method Summary collapse

Instance Method Details

#configurationObject



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

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



28
29
30
31
32
# File 'lib/falcon/command/paths.rb', line 28

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