Skip to content

Instantly share code, notes, and snippets.

@unicolet
Last active August 7, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unicolet/d3f317b56dd40e68c4a77e4ebd0f5f77 to your computer and use it in GitHub Desktop.
Save unicolet/d3f317b56dd40e68c4a77e4ebd0f5f77 to your computer and use it in GitHub Desktop.
def load_our_config(all=false)
files = Dir['conf.d/*.conf']
@@configuration = String.new
files.sort.each do |file|
if all
@@configuration << File.read(file)
elsif file !~ /output/ and file !~ /input/
@@configuration << File.read(file)
end
end
return @@configuration
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment