lib/figs/application.rb in figs-1.2.2 vs lib/figs/application.rb in figs-1.2.3
- old
+ new
@@ -2,10 +2,11 @@
require "yaml"
require "figs/error"
require "figs/env"
require "figs/git_handler"
+require "figs/directory_flattener"
module Figs
class Application
FIGS_ENV_PREFIX = "_FIGS_"
@@ -21,14 +22,18 @@
def locations
figfile["locations"]
end
+ def flattened_filenames(filenames)
+ Figs::DirectoryFlattener.flattened_filenames(filenames)
+ end
+
def load_path
if figfile["method"].eql? "git"
- @path = path_from_git(figfile["repo"], figfile["locations"])
+ @path = path_from_git(figfile["repo"], flattened_filenames(figfile["locations"]))
else
- @path = figfile["locations"]
+ @path = flattened_filenames(figfile["locations"])
end
end
def path_from_git(git_path, filenames = nil)
if(locations.is_a?(Array))