Skip to content

Commit

Permalink
Sort globbed files to allow loading in controlled order but linux sor…
Browse files Browse the repository at this point in the history
…ts by inode or whatever
  • Loading branch information
2called-chaos committed Nov 1, 2016
1 parent 481e2de commit a24f839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/watchmonkey_cli/application/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def config_filename name = "default"
def config_files
Dir["#{config_directory}/**/*.rb"].reject do |file|
file.gsub(config_directory, "").split("/").any?{|fp| fp.start_with?("__") }
end
end.sort
end

def checker_files
Dir["#{checker_directory}/**/*.rb"].reject do |file|
file.gsub(config_directory, "").split("/").any?{|fp| fp.start_with?("__") }
end
end.sort
end

def load_configs!
Expand Down

0 comments on commit a24f839

Please sign in to comment.