module Falcon::Command::Paths
def configuration
def configuration configuration = Configuration.new self.resolved_paths.each do |path| path = File.expand_path(path) configuration.load_file(path) end return configuration end
def resolved_paths(&block)
Resolve a set of `@paths` that may contain wildcards, into a sorted, unique array.
def resolved_paths(&block) @paths.collect do |path| Dir.glob(path) end.flatten.sort.uniq.each(&block) end