Last active
August 7, 2019 18:56
-
-
Save unicolet/d3f317b56dd40e68c4a77e4ebd0f5f77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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